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