My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pysnmp-pyasn1/default.nix

41 lines
733 B

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, poetry-core
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pysnmp-pyasn1";
version = "1.1.2";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "pysnmp";
repo = "pyasn1";
rev = "v${version}";
hash = "sha256-R4reMwVcJBTfTEHUk6sSUugsEPuKIziH1WbjMakP/dA=";
};
nativeBuildInputs = [
poetry-core
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pyasn1"
];
meta = with lib; {
description = "Python ASN.1 encoder and decoder";
homepage = "https://github.com/pysnmp/pyasn1";
license = licenses.bsd2;
maintainers = with maintainers; [ fab ];
};
}