e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
35 lines
697 B
Nix
35 lines
697 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "xxhash";
|
|
version = "3.4.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-A3nWzx/5h81CFgmiZM4CXnTzRuPhRd0QbAzC4+w/mak=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"xxhash"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python Binding for xxHash";
|
|
homepage = "https://github.com/ifduyue/python-xxhash";
|
|
changelog = "https://github.com/ifduyue/python-xxhash/blob/v${version}/CHANGELOG.rst";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ teh ];
|
|
};
|
|
}
|