python310Packages.rencode: 1.0.6 -> unstable-2021-08-10
fixes CVE-2021-40839
This commit is contained in:
parent
a1b860e67a
commit
2447fc09ec
|
@ -2,25 +2,37 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, cython
|
, cython
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "rencode";
|
pname = "rencode";
|
||||||
version = "1.0.6";
|
version = "unstable-2021-08-10";
|
||||||
|
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aresch";
|
owner = "aresch";
|
||||||
repo = "rencode";
|
repo = "rencode";
|
||||||
rev = "v${version}";
|
rev = "572ff74586d9b1daab904c6f7f7009ce0143bb75";
|
||||||
sha256 = "sha256-PGjjrZuoGYSPMNqXG1KXoZnOoWIe4g6s056jFhqrJ60=";
|
hash = "sha256-cL1hV3RMDuSdcjpPXXDYIEbzQrxiPeRs82PU8HTEQYk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cython ];
|
nativeBuildInputs = [ cython ];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
# import from $out
|
||||||
|
rm -r rencode
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/aresch/rencode";
|
homepage = "https://github.com/aresch/rencode";
|
||||||
description = "Fast (basic) object serialization similar to bencode";
|
description = "Fast (basic) object serialization similar to bencode";
|
||||||
license = licenses.gpl3;
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue