depot/third_party/nixpkgs/pkgs/development/python-modules/x11-hash/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

32 lines
639 B
Nix

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