nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "asn1";
11 version = "3.2.0";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "andrivet";
16 repo = "python-asn1";
17 tag = "v${version}";
18 hash = "sha256-Ge4ffqew/cfYUoKSudCz4S3+In6nEUPOK6Zes//R4Ls=";
19 };
20
21 build-system = [ setuptools ];
22
23 pythonRemoveDeps = [ "enum-compat" ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 enabledTestPaths = [ "tests/test_asn1.py" ];
28
29 pythonImportsCheck = [ "asn1" ];
30
31 meta = {
32 description = "Python ASN.1 encoder and decoder";
33 homepage = "https://github.com/andrivet/python-asn1";
34 changelog = "https://github.com/andrivet/python-asn1/blob/${src.tag}/CHANGELOG.rst";
35 license = lib.licenses.mit;
36 maintainers = with lib.maintainers; [ fab ];
37 };
38}