mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-01 01:33:20 +00:00
Merge pull request #331903 from pyrox0/setuppytest/python-nvd3
python312Packages.python-nvd3: migrate from setup.py test; modernize
This commit is contained in:
commit
68978e2527
@ -5,13 +5,13 @@
|
||||
python-slugify,
|
||||
jinja2,
|
||||
setuptools,
|
||||
coverage,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage {
|
||||
pname = "python-nvd3";
|
||||
version = "0.15.0";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "areski";
|
||||
@ -20,22 +20,22 @@ buildPythonPackage rec {
|
||||
sha256 = "1vjnicszcc9j0rgb58104fk9sry5xad1xli64jana9bkx42c6x1v";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
python-slugify
|
||||
jinja2
|
||||
setuptools
|
||||
];
|
||||
nativeCheckInputs = [ coverage ];
|
||||
|
||||
checkPhase = ''
|
||||
coverage run --source=nvd3 setup.py test
|
||||
'';
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = with lib; {
|
||||
pytestFlagsArray = [ "tests.py" ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/areski/python-nvd3";
|
||||
description = "Python Wrapper for NVD3 - It's time for beautiful charts";
|
||||
mainProgram = "nvd3";
|
||||
license = licenses.mit;
|
||||
maintainers = [ maintainers.ivan-tkatchev ];
|
||||
license = lib.licenses.mit;
|
||||
maintainers = [ lib.maintainers.ivan-tkatchev ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user