Skip to content

Commit

Permalink
python312Packages.ofxhome: remove nose and fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrox0 committed Jul 15, 2024
1 parent e309c5b commit 4f77657
Showing 1 changed file with 20 additions and 11 deletions.
31 changes: 20 additions & 11 deletions pkgs/development/python-modules/ofxhome/default.nix
Original file line number Diff line number Diff line change
@@ -1,28 +1,37 @@
{
lib,
buildPythonPackage,
fetchPypi,
nose,
fetchFromGitHub,
pytestCheckHook,
setuptools,
}:

buildPythonPackage rec {
version = "0.3.3";
format = "setuptools";
pname = "ofxhome";
pyproject = true;

src = fetchPypi {
inherit pname version;
sha256 = "1rpyfqr2q9pnin47rjd4qapl8ngk1m9jx36iqckhdhr8s8gla445";
src = fetchFromGitHub {
owner = "captin411";
repo = "ofxhome";
rev = "v${version}";
hash = "sha256-i16bE9iuafhAKco2jYfg5T5QCWFHdnYVztf1z2XbO9g=";
};

buildInputs = [ nose ];
build-system = [ setuptools ];

# ImportError: No module named tests
doCheck = false;
nativeCheckInputs = [ pytestCheckHook ];

meta = with lib; {
# These are helper functions that should not be called as tests
disabledTests = [
"testfile_name"
"testfile"
];

meta = {
homepage = "https://github.com/captin411/ofxhome";
description = "ofxhome.com financial institution lookup REST client";
license = licenses.mit;
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ pyrox0 ];
};
}

0 comments on commit 4f77657

Please sign in to comment.