nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 43 lines 825 B view raw
1{ lib 2, async-timeout 3, bitstring 4, buildPythonPackage 5, fetchFromGitHub 6, poetry-core 7, pyserial-asyncio 8}: 9 10buildPythonPackage rec { 11 pname = "pysml"; 12 version = "0.0.7"; 13 format = "pyproject"; 14 15 src = fetchFromGitHub { 16 owner = "mtdcr"; 17 repo = pname; 18 rev = version; 19 sha256 = "sha256-h8rQOKZozioZ7HmPETC5wBJyz7rMH1Q2wL6lF8G3zQU="; 20 }; 21 22 nativeBuildInputs = [ 23 poetry-core 24 ]; 25 26 propagatedBuildInputs = [ 27 async-timeout 28 bitstring 29 pyserial-asyncio 30 ]; 31 32 # Project has no tests 33 doCheck = false; 34 35 pythonImportsCheck = [ "sml" ]; 36 37 meta = with lib; { 38 description = "Python library for EDL21 smart meters using Smart Message Language (SML)"; 39 homepage = "https://github.com/mtdcr/pysml"; 40 license = with licenses; [ mit ]; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}