Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy3k 5# propagatedBuildInputs 6, aiohttp 7, async-timeout 8, semantic-version 9# buildInputs 10, pytestrunner 11# checkInputs 12, pytest 13, pytest-asyncio 14, aresponses 15}: 16buildPythonPackage rec { 17 pname = "pyhaversion"; 18 version = "3.3.0"; 19 20 # needs aiohttp which is py3k-only 21 disabled = !isPy3k; 22 23 src = fetchPypi { 24 inherit pname version; 25 sha256 = "376a1b232a26035bc82d64affa1c4f312d782234fe5453e8d0f9e1350a97be5b"; 26 }; 27 28 propagatedBuildInputs = [ 29 aiohttp 30 async-timeout 31 semantic-version 32 ]; 33 34 buildInputs = [ 35 pytestrunner 36 ]; 37 38 checkInputs = [ 39 pytest 40 pytest-asyncio 41 aresponses 42 ]; 43 44 meta = with lib; { 45 description = "A python module to the newest version number of Home Assistant"; 46 homepage = "https://github.com/ludeeus/pyhaversion"; 47 maintainers = [ maintainers.makefu ]; 48 }; 49}