depot/third_party/nixpkgs/pkgs/development/python-modules/xxhash/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

32 lines
692 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 ];
};
}