1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "xxhash";
11 version = "3.5.0";
12 pyproject = true;
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-hPLK3flRycv43C4iqJ1Mz12GORrGQY/oHjxn0M9gtF8=";
19 };
20
21 nativeBuildInputs = [ setuptools ];
22
23 pythonImportsCheck = [ "xxhash" ];
24
25 meta = with lib; {
26 description = "Python Binding for xxHash";
27 homepage = "https://github.com/ifduyue/python-xxhash";
28 changelog = "https://github.com/ifduyue/python-xxhash/blob/v${version}/CHANGELOG.rst";
29 license = licenses.bsd2;
30 maintainers = with maintainers; [ teh ];
31 };
32}