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

45 lines
767 B
Nix
Raw Normal View History

2018-03-20 21:25:02 +00:00
{ lib, fetchPypi, buildPythonPackage
# buildInputs
, six
, setuptools
, pyopenssl
, cryptography
2021-02-12 00:26:16 +00:00
, mock
, pytestCheckHook
2018-03-20 21:25:02 +00:00
}:
buildPythonPackage rec {
pname = "josepy";
version = "1.7.0";
2018-03-20 21:25:02 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "d265414fa16d7a8b7a1d1833b4ebb19a22bd0deae5d44413cf9040fd8491d85a";
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
'';
2018-03-20 21:25:02 +00:00
propagatedBuildInputs = [
pyopenssl
cryptography
six
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; [ ];
};
}