summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmily <vcs@emily.moe>2024-07-29 13:49:39 +0100
committerGitHub <noreply@github.com>2024-07-29 13:49:39 +0100
commitabb8d55386cd5a7e256b01ba796744ec744679f9 (patch)
tree96a2c277a59e0c940ff555cb1629010c5727925b
parentMerge pull request #330737 from Mikilio/patch-1 (diff)
parentpython312Packages.ptable: drop nose dependency (diff)
downloadnixpkgs-abb8d55386cd5a7e256b01ba796744ec744679f9.tar.gz
Merge pull request #330696 from Sigmanificient/ptable
python312Packages.ptable: drop nose dependency
-rw-r--r--pkgs/development/python-modules/ptable/default.nix11
1 files changed, 5 insertions, 6 deletions
diff --git a/pkgs/development/python-modules/ptable/default.nix b/pkgs/development/python-modules/ptable/default.nix
index 8847ef8a1bdc..d88a7433f068 100644
--- a/pkgs/development/python-modules/ptable/default.nix
+++ b/pkgs/development/python-modules/ptable/default.nix
@@ -2,13 +2,14 @@
lib,
buildPythonPackage,
fetchFromGitHub,
- nose,
+ setuptools,
+ pytestCheckHook,
}:
buildPythonPackage {
pname = "ptable";
version = "unstable-2019-06-14";
- format = "setuptools";
+ pyproject = true;
# https://github.com/kxxoling/PTable/issues/27
src = fetchFromGitHub {
@@ -18,11 +19,9 @@ buildPythonPackage {
sha256 = "1cj314rp6irlvr0a2c4xffsm2idsb0hzwr38vzz6z3kbhphcb63i";
};
- nativeCheckInputs = [ nose ];
+ build-system = [ setuptools ];
- checkPhase = ''
- nosetests --with-coverage --cover-package=prettytable --cover-min-percentage=75
- '';
+ nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
homepage = "https://github.com/kxxoling/PTable";