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