summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/x11-hash/default.nix
blob: 8bdc0ef987066799dca06d59ed07a2b12d5c4b52 (plain)
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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
}:

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 = {
    description = "Binding for X11 proof of work hashing";
    homepage = "https://github.com/mazaclub/x11_hash";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ np ];
  };
}