evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / development / python-modules / joserfc / default.nix
bloba54844be9213d7770539b00791a6c9426a974c5c
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
6   # build-system
7   setuptools,
9   # dependencies
10   cryptography,
11   pycryptodome,
13   # tests
14   pytestCheckHook,
17 buildPythonPackage rec {
18   pname = "joserfc";
19   version = "0.12.0";
20   pyproject = true;
22   src = fetchFromGitHub {
23     owner = "authlib";
24     repo = "joserfc";
25     rev = "refs/tags/${version}";
26     hash = "sha256-mnJzhkdX0+5Y/XwGlHgxLP0me8Cs/Cl3p46KgTKw2ug=";
27   };
29   build-system = [ setuptools ];
31   dependencies = [ cryptography ];
33   optional-dependencies = {
34     drafts = [ pycryptodome ];
35   };
37   nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
39   pythonImportsCheck = [ "joserfc" ];
41   meta = with lib; {
42     description = "Implementations of JOSE RFCs in Python";
43     homepage = "https://github.com/authlib/joserfc";
44     license = licenses.bsd3;
45     maintainers = [ ];
46   };