nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 35 lines 758 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 httpx, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "ha-iotawattpy"; 11 version = "0.1.2"; 12 pyproject = true; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-eMsBEbmENjbJME9Gzo4O9LbGo1i0MP0IuwLUAYqxbI8="; 17 }; 18 19 build-system = [ setuptools ]; 20 21 propagatedBuildInputs = [ httpx ]; 22 23 # Project doesn't tag releases or ship the tests with PyPI 24 # https://github.com/gtdiehl/iotawattpy/issues/14 25 doCheck = false; 26 27 pythonImportsCheck = [ "iotawattpy" ]; 28 29 meta = { 30 description = "Python library for the IoTaWatt Energy device"; 31 homepage = "https://github.com/gtdiehl/iotawattpy"; 32 license = lib.licenses.gpl3Plus; 33 maintainers = with lib.maintainers; [ fab ]; 34 }; 35}