depot/third_party/nixpkgs/pkgs/development/python-modules/josepy/default.nix
Default email 9405df4a82 Project import generated by Copybara.
GitOrigin-RevId: 8e4fe32876ca15e3d5eb3ecd3ca0b224417f5f17
2021-04-26 15:14:03 -04:00

44 lines
782 B
Nix

{ lib
, fetchPypi
, buildPythonPackage
, cryptography
, pyopenssl
, setuptools
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "josepy";
version = "1.8.0";
src = fetchPypi {
inherit pname version;
sha256 = "a5a182eb499665d99e7ec54bb3fe389f9cbc483d429c9651f20384ba29564269";
};
postPatch = ''
# remove coverage flags
sed -i '/addopts/d' pytest.ini
sed -i '/flake8-ignore/d' pytest.ini
'';
propagatedBuildInputs = [
pyopenssl
cryptography
setuptools
];
checkInputs = [
mock
pytestCheckHook
];
meta = with lib; {
description = "JOSE protocol implementation in Python";
homepage = "https://github.com/jezdez/josepy";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}