diff options
| author | Robert Schütz <nix@dotlambda.de> | 2022-06-21 01:40:34 +0000 |
|---|---|---|
| committer | Robert Schütz <nix@dotlambda.de> | 2022-06-21 22:21:50 +0000 |
| commit | 2447fc09ec68ebfc6b1c1de9931ec8deffdabb68 (patch) | |
| tree | 2a599f99858e567ec8b9db82a6ad2c9801ce38b7 /pkgs/development/python-modules/rencode | |
| parent | a1b860e67a25f4609b2ab17dbb297cb74a323a73 (diff) | |
python310Packages.rencode: 1.0.6 -> unstable-2021-08-10
fixes CVE-2021-40839
Diffstat (limited to 'pkgs/development/python-modules/rencode')
| -rw-r--r-- | pkgs/development/python-modules/rencode/default.nix | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/rencode/default.nix b/pkgs/development/python-modules/rencode/default.nix index 464bbd78515c..86192cbc29ca 100644 --- a/pkgs/development/python-modules/rencode/default.nix +++ b/pkgs/development/python-modules/rencode/default.nix @@ -2,25 +2,37 @@ , buildPythonPackage , fetchFromGitHub , cython +, pytestCheckHook }: buildPythonPackage rec { pname = "rencode"; - version = "1.0.6"; + version = "unstable-2021-08-10"; + + format = "setuptools"; src = fetchFromGitHub { owner = "aresch"; repo = "rencode"; - rev = "v${version}"; - sha256 = "sha256-PGjjrZuoGYSPMNqXG1KXoZnOoWIe4g6s056jFhqrJ60="; + rev = "572ff74586d9b1daab904c6f7f7009ce0143bb75"; + hash = "sha256-cL1hV3RMDuSdcjpPXXDYIEbzQrxiPeRs82PU8HTEQYk="; }; - buildInputs = [ cython ]; + nativeBuildInputs = [ cython ]; + + checkInputs = [ + pytestCheckHook + ]; + + preCheck = '' + # import from $out + rm -r rencode + ''; meta = with lib; { homepage = "https://github.com/aresch/rencode"; description = "Fast (basic) object serialization similar to bencode"; - license = licenses.gpl3; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ ]; }; - } |
