nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 1.2 kB view raw
1{ 2 lib, 3 async-timeout, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytest-asyncio, 7 pytest-mock, 8 pytestCheckHook, 9}: 10 11buildPythonPackage { 12 pname = "pescea"; 13 version = "1.0.12"; 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "lazdavila"; 18 repo = "pescea"; 19 # https://github.com/lazdavila/pescea/issues/4 20 rev = "a3dd7deedc64205e24adbc4ff406a2f6aed3b240"; 21 hash = "sha256-5TkFrGaSkQOORhf5a7SjkzggFLPyqe9k3M0B4ljhWTQ="; 22 }; 23 24 propagatedBuildInputs = [ async-timeout ]; 25 26 nativeCheckInputs = [ 27 pytest-asyncio 28 pytest-mock 29 pytestCheckHook 30 ]; 31 32 postPatch = '' 33 # https://github.com/lazdavila/pescea/pull/1 34 substituteInPlace setup.py \ 35 --replace '"asyncio",' "" 36 ''; 37 38 disabledTests = [ 39 # AssertionError: assert <State.BUSY: 'BusyWaiting'>... 40 "test_updates_while_busy" 41 # Test requires network access 42 "test_flow_control" 43 ]; 44 45 pythonImportsCheck = [ "pescea" ]; 46 47 meta = { 48 description = "Python interface to Escea fireplaces"; 49 homepage = "https://github.com/lazdavila/pescea"; 50 license = lib.licenses.gpl3Plus; 51 maintainers = with lib.maintainers; [ fab ]; 52 }; 53}