depot/third_party/nixpkgs/pkgs/development/python-modules/josepy/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

43 lines
883 B
Nix

{
lib,
buildPythonPackage,
cryptography,
fetchPypi,
poetry-core,
pyopenssl,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "josepy";
version = "1.14.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-MIs7+c6CWtTUu6djcs8ZtdwcLOlqnSmPlkKXXmS9E90=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
pyopenssl
cryptography
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "josepy" ];
meta = with lib; {
changelog = "https://github.com/certbot/josepy/blob/v${version}/CHANGELOG.rst";
description = "JOSE protocol implementation in Python";
mainProgram = "jws";
homepage = "https://github.com/certbot/josepy";
license = licenses.asl20;
maintainers = with maintainers; [ dotlambda ];
};
}