about summary refs log tree commit diff
path: root/pkgs/development/python-modules/x11-hash/default.nix
blob: 403f1ed3e12f1411c7e64f42b415f688f25b710c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, pytestCheckHook
}:

buildPythonPackage rec {
  version = "1.4";
  pname = "x11-hash";
  pyproject = true;

  src = fetchPypi {
    pname = "x11_hash";
    inherit version;
    hash = "sha256-QtzqxEzpVGK48/lvOEr8VtPUYexLdXKD3zGv1VOdWpw=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  # pypi's source doesn't include tests
  doCheck = false;

  pythonImportsCheck = [
    "x11_hash"
  ];

  meta = with lib; {
    description = "Binding for X11 proof of work hashing";
    homepage = "https://github.com/mazaclub/x11_hash";
    license = licenses.mit;
    maintainers = with maintainers; [ np ];
  };
}