27 lines
636 B
Nix
27 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 ];
|
|
};
|
|
}
|