1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 # Python deps
6 attrs,
7 cbor2,
8 certvalidator,
9 cryptography,
10 ecdsa,
11 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "cose";
16 version = "1.1.0";
17
18 format = "pyproject";
19
20 src = fetchFromGitHub {
21 owner = "TimothyClaeys";
22 repo = "pycose";
23 rev = "v${version}";
24 hash = "sha256-HgGGmOvBadLDTAEkUY6aLC7r0aGKGfQv/Zyl8Orh8U0=";
25 };
26
27 propagatedBuildInputs = [
28 attrs
29 cbor2
30 certvalidator
31 cryptography
32 ecdsa
33 setuptools
34 ];
35
36 pythonImportsCheck = [ "pycose" ];
37
38 meta = with lib; {
39 description = "Python implementation of the COSE specification";
40 homepage = "https://github.com/TimothyClaeys/pycose";
41 license = licenses.bsd3;
42 maintainers = with maintainers; [ t4ccer ];
43 };
44}