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