2024-05-22 16:01:06 +02:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools-scm,
|
2023-09-07 00:25:57 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-xz";
|
2023-12-03 00:02:34 +01:00
|
|
|
version = "0.5.0";
|
2023-09-07 00:25:57 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-12-03 00:02:34 +01:00
|
|
|
hash = "sha256-oYjwQ26BFFXxvaYdzp2+bw/BQwM0v/n1r9DmaLs1R3Q=";
|
2023-09-07 00:25:57 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ setuptools-scm ];
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "xz" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Pure Python library for seeking within compressed xz files";
|
|
|
|
homepage = "https://github.com/Rogdham/python-xz";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ mxmlnkn ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|