Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 cython, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "rencode"; 11 version = "unstable-2021-08-10"; 12 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "aresch"; 17 repo = "rencode"; 18 rev = "572ff74586d9b1daab904c6f7f7009ce0143bb75"; 19 hash = "sha256-cL1hV3RMDuSdcjpPXXDYIEbzQrxiPeRs82PU8HTEQYk="; 20 }; 21 22 nativeBuildInputs = [ cython ]; 23 24 nativeCheckInputs = [ pytestCheckHook ]; 25 26 preCheck = '' 27 # import from $out 28 rm -r rencode 29 ''; 30 31 meta = with lib; { 32 homepage = "https://github.com/aresch/rencode"; 33 description = "Fast (basic) object serialization similar to bencode"; 34 license = licenses.gpl3Plus; 35 maintainers = [ ]; 36 }; 37}