nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 47 lines 862 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pyserial 5, pyserial-asyncio 6, pytestCheckHook 7, pythonOlder 8, pytz 9, tailer 10}: 11 12buildPythonPackage rec { 13 pname = "dsmr-parser"; 14 version = "0.32"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.8"; 18 19 src = fetchFromGitHub { 20 owner = "ndokter"; 21 repo = "dsmr_parser"; 22 rev = "v${version}"; 23 sha256 = "0hi69gdcmsp5yaspsfbpc3x76iybg20cylxyaxm131fpd5wwan9l"; 24 }; 25 26 propagatedBuildInputs = [ 27 pyserial 28 pyserial-asyncio 29 pytz 30 tailer 31 ]; 32 33 checkInputs = [ 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ 38 "dsmr_parser" 39 ]; 40 41 meta = with lib; { 42 description = "Python module to parse Dutch Smart Meter Requirements (DSMR)"; 43 homepage = "https://github.com/ndokter/dsmr_parser"; 44 license = with licenses; [ mit ]; 45 maintainers = with maintainers; [ fab ]; 46 }; 47}