Skip to content

Commit

Permalink
Merge pull request #330459 from pyrox0/denose/pyquaternion
Browse files Browse the repository at this point in the history
python312Packages.pyquaternion: Remove nose dependency
  • Loading branch information
emilazy committed Jul 28, 2024
2 parents 5b87953 + 5a365c5 commit 56e1690
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions pkgs/development/python-modules/pyquaternion/default.nix
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
numpy,
nose,
setuptools,
pytestCheckHook,
}:

buildPythonPackage rec {
pname = "pyquaternion";
version = "0.9.9";
format = "setuptools";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-sfYa8hnLL+lmtft5oZISTy5jo/end6w8rfKVexqBvqg=";
src = fetchFromGitHub {
owner = "KieranWynn";
repo = "pyquaternion";
rev = "v${version}";
hash = "sha256-L0wT9DFUDRcmmN7OpmIDNvtQWQrM7iFnZt6R2xrJ+3A=";
};

# The VERSION.txt file is required for setup.py
Expand All @@ -22,9 +25,14 @@ buildPythonPackage rec {
echo "${version}" > VERSION.txt
'';

propagatedBuildInputs = [ numpy ];
build-system = [ setuptools ];

dependencies = [ numpy ];

nativeCheckInputs = [ pytestCheckHook ];

pytestFlagsArray = [ "pyquaternion/test/" ];

nativeCheckInputs = [ nose ];
pythonImportsCheck = [ "pyquaternion" ];

meta = with lib; {
Expand Down

0 comments on commit 56e1690

Please sign in to comment.