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