2024-07-15 21:31:28 +03:00
|
|
|
{ lib, buildPythonPackage, fetchurl, cython, pytest, coverage }:
|
2019-08-05 10:50:55 +03:00
|
|
|
|
2024-07-15 21:31:28 +03:00
|
|
|
buildPythonPackage rec {
|
2019-08-05 10:50:55 +03:00
|
|
|
pname = "bencoder.pyx";
|
2023-05-07 16:55:30 +03:00
|
|
|
version = "3.0.1";
|
2019-08-05 10:50:55 +03:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-05-07 16:55:30 +03:00
|
|
|
url = "https://github.com/whtsky/bencoder.pyx/archive/9a47768f3ceba9df9e6fbaa7c445f59960889009.tar.gz";
|
|
|
|
sha256 = "1yh565xjbbhn49xjfms80ac8psjbzn66n8dcx0x8mn7zzjv06clz";
|
2019-08-05 10:50:55 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest coverage ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A fast bencode implementation in Cython";
|
|
|
|
homepage = "https://github.com/whtsky/bencoder.pyx";
|
2024-05-19 22:00:00 +03:00
|
|
|
maintainers = with maintainers; [ seberm nixbitcoin ];
|
2019-08-05 10:50:55 +03:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|