python311Packages.x11-hash: refactor

This commit is contained in:
natsukium 2023-11-05 14:40:49 +09:00 committed by Jörg Thalheim
parent 713db975bb
commit 0048cdae9c

View File

@ -1,23 +1,36 @@
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
, pytestCheckHook
}:
buildPythonPackage rec {
version = "1.4";
pname = "x11-hash";
pyproject = true;
src = fetchPypi {
pname = "x11_hash";
inherit version;
sha256 = "172skm9xbbrivy1p4xabxihx9lsnzi53hvzryfw64m799k2fmp22";
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 ];
};
}