1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 poetry-core,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "pysnmp-pyasn1";
12 version = "1.1.3";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "pysnmp";
19 repo = "pyasn1";
20 tag = "v${version}";
21 hash = "sha256-W74aWMqGlat+aZfhbP1cTKRz7SomHdGwfK5yJwxgyqI=";
22 };
23
24 nativeBuildInputs = [ poetry-core ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "pyasn1" ];
29
30 meta = with lib; {
31 description = "Python ASN.1 encoder and decoder";
32 homepage = "https://github.com/pysnmp/pyasn1";
33 changelog = "https://github.com/pysnmp/pyasn1/releases/tag/v${version}";
34 license = licenses.bsd2;
35 maintainers = with maintainers; [ fab ];
36 };
37}