listparser: switch from buildPythonPackage -> stdenv.mkDerivation

This commit is contained in:
2024-06-24 20:51:48 +00:00
parent 5d1c52d0bc
commit d9437bf4aa

View File

@@ -1,49 +1,58 @@
{
buildPythonPackage,
fetchFromGitHub,
lib,
lxml,
nix-update-script,
poetry-core,
python3,
pypaBuildHook,
pypaInstallHook,
pytestCheckHook,
requests,
stdenv,
toPythonModule,
}:
buildPythonPackage rec {
pname = "listparser";
version = "0.20";
toPythonModule (
stdenv.mkDerivation (finalAttrs: {
pname = "listparser";
version = "0.20";
format = "pyproject";
src = fetchFromGitHub {
owner = "kurtmckee";
repo = "listparser";
rev = "v${finalAttrs.version}";
hash = "sha256-eg9TrjDgvHsYt/0JQ7MK/uGc3KK3uGr3jRxzG0FlySg=";
};
src = fetchFromGitHub {
owner = "kurtmckee";
repo = "listparser";
rev = "v${version}";
hash = "sha256-eg9TrjDgvHsYt/0JQ7MK/uGc3KK3uGr3jRxzG0FlySg=";
};
nativeBuildInputs = [
poetry-core
pypaBuildHook
pypaInstallHook
];
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
requests
lxml
];
nativeCheckInputs = [
pytestCheckHook
];
nativeCheckInputs = [
pytestCheckHook
];
propagatedBuildInputs = [
requests
lxml
];
pythonImportsCheck = [
"listparser"
];
passthru.updateScript = nix-update-script { };
doCheck = true;
meta = with lib; {
description = "Parse OPML subscription lists in Python";
homepage = "https://github.com/kurtmckee/listparser";
license = licenses.lgpl3Plus;
maintainers = [ maintainers.colinsane ];
platforms = platforms.linux;
};
}
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Parse OPML subscription lists in Python";
homepage = "https://github.com/kurtmckee/listparser";
license = licenses.lgpl3Plus;
maintainers = [ maintainers.colinsane ];
platforms = platforms.linux;
};
})
)