nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 39 lines 734 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 poetry-core, 6 pyasn1, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "rsa"; 12 version = "4.9"; 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "sybrenstuvel"; 17 repo = "python-rsa"; 18 rev = "version-${version}"; 19 hash = "sha256-PwaRe+ICy0UoguXSMSh3PFl5R+YAhJwNdNN9isadlJY="; 20 }; 21 22 nativeBuildInputs = [ poetry-core ]; 23 24 propagatedBuildInputs = [ pyasn1 ]; 25 26 preCheck = '' 27 sed -i '/addopts/d' tox.ini 28 ''; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 disabledTestPaths = [ "tests/test_mypy.py" ]; 33 34 meta = { 35 homepage = "https://stuvel.eu/rsa"; 36 license = lib.licenses.asl20; 37 description = "Pure-Python RSA implementation"; 38 }; 39}