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