nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 43 lines 913 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pycryptodomex, 7 pysnmp-pyasn1, 8 pysnmp-pysmi, 9}: 10 11buildPythonPackage rec { 12 pname = "pysnmplib"; 13 version = "5.0.24"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "pysnmp"; 18 repo = "pysnmp"; 19 tag = "v${version}"; 20 hash = "sha256-AtQqXiy943cYhHDsyz9Yk5uA4xK7Q4p21CT3X3zYzrQ="; 21 }; 22 23 nativeBuildInputs = [ poetry-core ]; 24 25 propagatedBuildInputs = [ 26 pysnmp-pysmi 27 pysnmp-pyasn1 28 pycryptodomex 29 ]; 30 31 # Module has no test, examples are used for testing 32 doCheck = false; 33 34 pythonImportsCheck = [ "pysnmp" ]; 35 36 meta = { 37 description = "Implementation of v1/v2c/v3 SNMP engine"; 38 homepage = "https://github.com/pysnmp/pysnmp"; 39 changelog = "https://github.com/pysnmp/pysnmp/releases/tag/v${version}"; 40 license = with lib.licenses; [ mit ]; 41 maintainers = with lib.maintainers; [ fab ]; 42 }; 43}