snac2: 2.68 -> 2.70 (#379043)
[NixPkgs.git] / pkgs / development / python-modules / rencode / default.nix
blob388e7ec9cd8102b26cfb6b119aa2d35fa361c960
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   cython,
6   pytestCheckHook,
7 }:
9 buildPythonPackage rec {
10   pname = "rencode";
11   version = "unstable-2021-08-10";
13   format = "setuptools";
15   src = fetchFromGitHub {
16     owner = "aresch";
17     repo = "rencode";
18     rev = "572ff74586d9b1daab904c6f7f7009ce0143bb75";
19     hash = "sha256-cL1hV3RMDuSdcjpPXXDYIEbzQrxiPeRs82PU8HTEQYk=";
20   };
22   nativeBuildInputs = [ cython ];
24   nativeCheckInputs = [ pytestCheckHook ];
26   preCheck = ''
27     # import from $out
28     rm -r rencode
29   '';
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   };