depot/third_party/nixpkgs/pkgs/development/python-modules/xxhash/default.nix

33 lines
692 B
Nix
Raw Normal View History

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "xxhash";
version = "3.5.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-hPLK3flRycv43C4iqJ1Mz12GORrGQY/oHjxn0M9gtF8=";
};
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 ];
};
}