Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, httpx 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "iotawattpy"; 10 version = "0.1.0"; 11 format = "setuptools"; 12 13 disabled = pythonOlder "3.8"; 14 15 src = fetchPypi { 16 inherit pname version; 17 sha256 = "1pyxm87lvd6zy0rx7r9jivk2li267r3xr0b9p6vf0v0vp9fmgsw3"; 18 }; 19 20 propagatedBuildInputs = [ 21 httpx 22 ]; 23 24 # Project doesn't tag releases or ship the tests with PyPI 25 # https://github.com/gtdiehl/iotawattpy/issues/14 26 doCheck = false; 27 28 pythonImportsCheck = [ "iotawattpy" ]; 29 30 meta = with lib; { 31 description = "Python interface for the IoTaWatt device"; 32 homepage = "https://github.com/gtdiehl/iotawattpy"; 33 license = licenses.gpl3Plus; 34 maintainers = with maintainers; [ fab ]; 35 }; 36}