nixpkgs/pkgs/development/python-modules/rsa/default.nix
2026-01-14 12:15:21 +01:00

39 lines
734 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
pyasn1,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "rsa";
version = "4.9";
pyproject = true;
src = fetchFromGitHub {
owner = "sybrenstuvel";
repo = "python-rsa";
rev = "version-${version}";
hash = "sha256-PwaRe+ICy0UoguXSMSh3PFl5R+YAhJwNdNN9isadlJY=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ pyasn1 ];
preCheck = ''
sed -i '/addopts/d' tox.ini
'';
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [ "tests/test_mypy.py" ];
meta = {
homepage = "https://stuvel.eu/rsa";
license = lib.licenses.asl20;
description = "Pure-Python RSA implementation";
};
}