Files
my-pkgs/pkgs/pyzotero-cli/default.nix

43 lines
810 B
Nix

{
lib,
python3Packages,
fetchPypi,
pyzotero,
}:
python3Packages.buildPythonApplication rec {
pname = "pyzotero-cli";
version = "0.1.6";
pyproject = true;
src = fetchPypi {
pname = "pyzotero_cli";
inherit version;
hash = "sha256-qQdH4takRxu20bgYuOKgzn65fEplKP0GqVaD3PLH+5w=";
};
build-system = with python3Packages; [
setuptools
];
dependencies = [
pyzotero
] ++ (with python3Packages; [
click
pyyaml
tabulate
python-dotenv
pytest
]);
pythonImportsCheck = [ "pyzotero_cli" ];
meta = {
description = "CLI wrapper for pyzotero - use Zotero from the command line";
homepage = "https://github.com/chriscarrollsmith/pyzotero-cli";
license = lib.licenses.mit;
platforms = lib.platforms.all;
mainProgram = "zot";
};
}