Skip to content

Commit

Permalink
python312Packages.pygtfs: drop nose dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Jul 28, 2024
1 parent 588d276 commit 44244f7
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions pkgs/development/python-modules/pygtfs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,38 @@
buildPythonPackage,
docopt,
fetchPypi,
nose,
pytz,
pythonOlder,
setuptools,
setuptools-scm,
six,
sqlalchemy,
pytestCheckHook,
}:

buildPythonPackage rec {
pname = "pygtfs";
version = "0.1.9";
format = "setuptools";

disabled = pythonOlder "3.7";
pyproject = true;

src = fetchPypi {
inherit pname version;
hash = "sha256-J5vu51OOMabWd8h60PpvvBiCnwQlhEnBywNXxy9hOuA=";
};

postPatch = ''
# https://github.com/jarondl/pygtfs/pull/72
substituteInPlace setup.py \
--replace "pytz>=2012d" "pytz"
'';

nativeBuildInputs = [ setuptools-scm ];
build-system = [
setuptools
setuptools-scm
];

propagatedBuildInputs = [
dependencies = [
docopt
pytz
six
sqlalchemy
];

nativeCheckInputs = [ nose ];
nativeCheckInputs = [ pytestCheckHook ];
pytestFlagsArray = [ "pygtfs/test/test.py" ];

pythonImportsCheck = [ "pygtfs" ];

Expand Down

0 comments on commit 44244f7

Please sign in to comment.