depot/third_party/nixpkgs/pkgs/development/python-modules/josepy/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

49 lines
965 B
Nix

{ lib
, buildPythonPackage
, cryptography
, fetchPypi
, pyopenssl
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "josepy";
version = "1.12.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "267004a64f08c016cd54b7aaf7c323fa3ef3679fb62f4b086cd56448d0fecb25";
};
propagatedBuildInputs = [
pyopenssl
cryptography
setuptools
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace pytest.ini \
--replace " --flake8 --cov-report xml --cov-report=term-missing --cov=josepy --cov-config .coveragerc" ""
sed -i '/flake8-ignore/d' pytest.ini
'';
pythonImportsCheck = [
"josepy"
];
meta = with lib; {
description = "JOSE protocol implementation in Python";
homepage = "https://github.com/jezdez/josepy";
license = licenses.asl20;
maintainers = with maintainers; [ ];
};
}