nixpkgs/pkgs/development/python-modules/josepy/default.nix

45 lines
782 B
Nix
Raw Normal View History

{ lib
, fetchPypi
, buildPythonPackage
2018-03-20 21:25:02 +00:00
, cryptography
, pyopenssl
, setuptools
2021-02-12 00:26:16 +00:00
, mock
, pytestCheckHook
2018-03-20 21:25:02 +00:00
}:
buildPythonPackage rec {
pname = "josepy";
2021-03-24 09:28:15 +00:00
version = "1.8.0";
2018-03-20 21:25:02 +00:00
src = fetchPypi {
inherit pname version;
2021-03-24 09:28:15 +00:00
sha256 = "a5a182eb499665d99e7ec54bb3fe389f9cbc483d429c9651f20384ba29564269";
2018-03-20 21:25:02 +00:00
};
2021-02-12 00:26:16 +00:00
postPatch = ''
# remove coverage flags
sed -i '/addopts/d' pytest.ini
sed -i '/flake8-ignore/d' pytest.ini
2021-02-12 00:26:16 +00:00
'';
2018-03-20 21:25:02 +00:00
propagatedBuildInputs = [
pyopenssl
cryptography
setuptools
];
2021-02-12 00:26:16 +00:00
checkInputs = [
mock
pytestCheckHook
];
2018-03-20 21:25:02 +00:00
meta = with lib; {
description = "JOSE protocol implementation in Python";
homepage = "https://github.com/jezdez/josepy";
2018-03-20 21:25:02 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}