2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
36 lines
663 B
Nix
36 lines
663 B
Nix
{ 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 ];
|
|
};
|
|
}
|