pubs: refactor

This commit is contained in:
Fabian Affolter
2023-12-20 20:37:16 +01:00
parent c50e653b14
commit 55c538d0c2
+21 -11
View File
@@ -7,11 +7,12 @@
python3.pkgs.buildPythonApplication rec {
pname = "pubs";
version = "0.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "pubs";
repo = "pubs";
rev = "v${version}";
rev = "refs/tags/v${version}";
hash = "sha256-U/9MLqfXrzYVGttFSafw4pYDy26WgdsJMCxciZzO1pw=";
};
@@ -28,22 +29,26 @@ python3.pkgs.buildPythonApplication rec {
})
];
nativeBuildInputs = with python3.pkgs; [
setuptools
];
propagatedBuildInputs = with python3.pkgs; [
pyyaml
bibtexparser
python-dateutil
six
requests
configobj
beautifulsoup4
feedparser
argcomplete
beautifulsoup4
bibtexparser
configobj
feedparser
python-dateutil
pyyaml
requests
six
];
nativeCheckInputs = with python3.pkgs; [
pyfakefs
mock
ddt
mock
pyfakefs
pytestCheckHook
];
@@ -59,9 +64,14 @@ python3.pkgs.buildPythonApplication rec {
"test_readme"
];
pythonImportsCheck = [
"pubs"
];
meta = with lib; {
description = "Command-line bibliography manager";
homepage = "https://github.com/pubs/pubs";
changelog = "https://github.com/pubs/pubs/blob/v${version}/changelog.md";
license = licenses.lgpl3Only;
maintainers = with maintainers; [ gebner dotlambda ];
};