diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-12-03 23:13:36 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-12-03 23:13:36 +0100 |
commit | 274f0a71fe7d31309abe38a079ea3af2af21809a (patch) | |
tree | 7260eb2c8997ba6c31abeb233fd148c3ca7abc75 /pkgs/development/python-modules/pescea | |
parent | 54060c0a1fa1f7bb854246ee04759902fca9dad4 (diff) |
python3Packages.pescea: init at 1.0.10
Diffstat (limited to 'pkgs/development/python-modules/pescea')
-rw-r--r-- | pkgs/development/python-modules/pescea/default.nix | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pescea/default.nix b/pkgs/development/python-modules/pescea/default.nix new file mode 100644 index 0000000000000..c4a6feb6896c1 --- /dev/null +++ b/pkgs/development/python-modules/pescea/default.nix @@ -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 ]; + }; +} |