1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 version = "1.4"; 11 pname = "x11-hash"; 12 pyproject = true; 13 14 src = fetchPypi { 15 pname = "x11_hash"; 16 inherit version; 17 hash = "sha256-QtzqxEzpVGK48/lvOEr8VtPUYexLdXKD3zGv1VOdWpw="; 18 }; 19 20 nativeBuildInputs = [ setuptools ]; 21 22 # pypi's source doesn't include tests 23 doCheck = false; 24 25 pythonImportsCheck = [ "x11_hash" ]; 26 27 meta = with lib; { 28 description = "Binding for X11 proof of work hashing"; 29 homepage = "https://github.com/mazaclub/x11_hash"; 30 license = licenses.mit; 31 maintainers = with maintainers; [ np ]; 32 }; 33}