Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python312Packages.citeproc-py: Remove nose dependency and re-enable tests #330237

Merged
merged 2 commits into from
Jul 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 13 additions & 11 deletions pkgs/development/python-modules/citeproc-py/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,41 @@
lib,
buildPythonPackage,
fetchPypi,
nose,
git,
lxml,
rnc2rng,
pytestCheckHook,
setuptools,
}:

buildPythonPackage rec {
pname = "citeproc-py";
version = "0.6.0";
format = "setuptools";
pyproject = true;

src = fetchPypi {
inherit pname version;
sha256 = "d9e3a224f936fe2e5033b5d9ffdacab769cedb61d96c4e0cf2f0b488f1d24b4e";
hash = "sha256-2eOiJPk2/i5QM7XZ/9rKt2nO22HZbE4M8vC0iPHSS04=";
};

build-system = [ setuptools ];

buildInputs = [ rnc2rng ];

propagatedBuildInputs = [ lxml ];
dependencies = [ lxml ];

nativeCheckInputs = [
nose
git
pytestCheckHook
];
checkPhase = "nosetests tests";
doCheck = false; # seems to want a Git repository, but fetchgit with leaveDotGit also fails

pythonImportsCheck = [ "citeproc" ];

meta = with lib; {
homepage = "https://github.com/brechtm/citeproc-py";
meta = {
homepage = "https://github.com/citeproc-py/citeproc-py";
description = "Citation Style Language (CSL) parser for Python";
mainProgram = "csl_unsorted";
license = licenses.bsd2;
maintainers = with maintainers; [ bcdarwin ];
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ bcdarwin ];
};
}