From b2575b31eea55ed24478431d6511d88944ad77f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 7 Jun 2023 15:33:26 +0200 Subject: [PATCH] python310Packages.fingerprints: fix test execution --- .../python-modules/fingerprints/default.nix | 22 +++++++------------ 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/fingerprints/default.nix b/pkgs/development/python-modules/fingerprints/default.nix index 05affeb93cb5..ecda4d7959b8 100644 --- a/pkgs/development/python-modules/fingerprints/default.nix +++ b/pkgs/development/python-modules/fingerprints/default.nix @@ -1,18 +1,18 @@ { lib -, fetchPypi +, fetchFromGitHub , buildPythonPackage , normality -, mypy -, coverage -, nose +, pytestCheckHook }: buildPythonPackage rec { pname = "fingerprints"; version = "1.1.0"; - src = fetchPypi { - inherit pname version; - hash = "sha256-GZmurg3rpD081QZW/LUKWblhsQQSS6lg9O7y/kGy4To="; + src = fetchFromGitHub { + owner = "alephdata"; + repo = "fingerprints"; + rev = version; + hash = "sha256-rptBM08dvivfglPvl3PZd9V/7u2SHbJ/BxfVHNGMt3A="; }; propagatedBuildInputs = [ @@ -20,15 +20,9 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ - mypy - coverage - nose + pytestCheckHook ]; - checkPhase = '' - nosetests - ''; - pythonImportsCheck = [ "fingerprints" ];