22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
26 lines
636 B
Nix
26 lines
636 B
Nix
{ lib, buildPythonPackage, fetchPypi, python, cython }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fastbencode";
|
|
version = "0.0.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-tryavlQtBmN5NSlXb0m6iJFQhVT4XQm11tXtevfgxuQ=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
pythonImportsCheck = [ "fastbencode" ];
|
|
|
|
checkPhase = ''
|
|
${python.interpreter} -m unittest fastbencode.tests.test_suite
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Fast implementation of bencode";
|
|
homepage = "https://github.com/breezy-team/fastbencode";
|
|
license = licenses.gpl2Only;
|
|
maintainers = [ maintainers.marsam ];
|
|
};
|
|
}
|