Files
nixpkgs/pkgs/development/python-modules/josepy/default.nix
T
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

49 lines
891 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 ];
};
}