37 lines
666 B
Nix
37 lines
666 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cryptography
|
|
, deprecated
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "jwcrypto";
|
|
version = "1.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-DWRhuhP3wnHYusUBjuYN28rl/zlAP6+kI3X1fQjjmLs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
cryptography
|
|
deprecated
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"jwcrypto"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Implementation of JOSE Web standards";
|
|
homepage = "https://github.com/latchset/jwcrypto";
|
|
license = licenses.lgpl3Plus;
|
|
maintainers = with maintainers; [ costrouc ];
|
|
};
|
|
}
|