4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
42 lines
826 B
Nix
42 lines
826 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, poetry-core
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pysnmp-pyasn1";
|
|
version = "1.1.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pysnmp";
|
|
repo = "pyasn1";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-W74aWMqGlat+aZfhbP1cTKRz7SomHdGwfK5yJwxgyqI=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pyasn1"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python ASN.1 encoder and decoder";
|
|
homepage = "https://github.com/pysnmp/pyasn1";
|
|
changelog = "https://github.com/pysnmp/pyasn1/releases/tag/v${version}";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|