python3Packages.pescea: init at 1.0.10
This commit is contained in:
parent
54060c0a1f
commit
274f0a71fe
2 changed files with 60 additions and 0 deletions
58
pkgs/development/python-modules/pescea/default.nix
Normal file
58
pkgs/development/python-modules/pescea/default.nix
Normal file
|
@ -0,0 +1,58 @@
|
||||||
|
{ lib
|
||||||
|
, async-timeout
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytest-mock
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pescea";
|
||||||
|
version = "1.0.10";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "lazdavila";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "Q38mLGjrRdXEvT+PCNsil1e2p0mmM0Xy8TUx9QOnFRA=";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
async-timeout
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytest-asyncio
|
||||||
|
pytest-mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# https://github.com/lazdavila/pescea/pull/1
|
||||||
|
substituteInPlace setup.py \
|
||||||
|
--replace '"asyncio",' ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
disabledTests = [
|
||||||
|
# AssertionError: assert <State.BUSY: 'BusyWaiting'>...
|
||||||
|
"test_updates_while_busy"
|
||||||
|
# Test requires network access
|
||||||
|
"test_flow_control"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"pescea"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python interface to Escea fireplaces";
|
||||||
|
homepage = "https://github.com/lazdavila/pescea";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -5682,6 +5682,8 @@ in {
|
||||||
|
|
||||||
persisting-theory = callPackage ../development/python-modules/persisting-theory { };
|
persisting-theory = callPackage ../development/python-modules/persisting-theory { };
|
||||||
|
|
||||||
|
pescea = callPackage ../development/python-modules/pescea { };
|
||||||
|
|
||||||
pex = callPackage ../development/python-modules/pex { };
|
pex = callPackage ../development/python-modules/pex { };
|
||||||
|
|
||||||
pexif = callPackage ../development/python-modules/pexif { };
|
pexif = callPackage ../development/python-modules/pexif { };
|
||||||
|
|
Loading…
Reference in a new issue