mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 08:26:37 +01:00
39 lines
734 B
Nix
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";
|
|
};
|
|
}
|