2023-10-09 19:29:22 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools-scm
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "python-xz";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "0.5.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-oYjwQ26BFFXxvaYdzp2+bw/BQwM0v/n1r9DmaLs1R3Q=";
|
2023-10-09 19:29:22 +00: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;
|
|
|
|
};
|
|
|
|
}
|