1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools
5, pytestCheckHook
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 = [
20 setuptools
21 ];
22
23 # pypi's source doesn't include tests
24 doCheck = false;
25
26 pythonImportsCheck = [
27 "x11_hash"
28 ];
29
30 meta = with lib; {
31 description = "Binding for X11 proof of work hashing";
32 homepage = "https://github.com/mazaclub/x11_hash";
33 license = licenses.mit;
34 maintainers = with maintainers; [ np ];
35 };
36}