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