nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at haskell-updates 51 lines 995 B view raw
1{ 2 lib, 3 asn1crypto, 4 attrs, 5 buildPythonPackage, 6 cryptography, 7 fetchFromGitHub, 8 pyserial, 9 pytestCheckHook, 10 python-dateutil, 11 setuptools, 12 structlog, 13 typing-extensions, 14}: 15 16buildPythonPackage rec { 17 pname = "dlms-cosem"; 18 version = "25.1.0"; 19 pyproject = true; 20 21 src = fetchFromGitHub { 22 owner = "pwitab"; 23 repo = "dlms-cosem"; 24 tag = version; 25 hash = "sha256-ZsF+GUVG9bZNZE5daROQJIZZgqpjAkB/bFyre2oGu+E="; 26 }; 27 28 build-system = [ setuptools ]; 29 30 dependencies = [ 31 asn1crypto 32 attrs 33 cryptography 34 pyserial 35 python-dateutil 36 structlog 37 typing-extensions 38 ]; 39 40 nativeCheckInputs = [ pytestCheckHook ]; 41 42 pythonImportsCheck = [ "dlms_cosem" ]; 43 44 meta = { 45 description = "Python module to parse DLMS/COSEM"; 46 homepage = "https://github.com/pwitab/dlms-cosem"; 47 changelog = "https://github.com/pwitab/dlms-cosem/blob/${src.tag}/HISTORY.md"; 48 license = lib.licenses.mit; 49 maintainers = with lib.maintainers; [ fab ]; 50 }; 51}