diff --git a/pkgs/development/python-modules/nsapi/default.nix b/pkgs/development/python-modules/nsapi/default.nix index 63bd70151c89..4184a743751c 100644 --- a/pkgs/development/python-modules/nsapi/default.nix +++ b/pkgs/development/python-modules/nsapi/default.nix @@ -2,28 +2,28 @@ lib, buildPythonPackage, fetchFromGitHub, - future, pythonOlder, pytz, + setuptools, }: buildPythonPackage rec { pname = "nsapi"; - version = "3.0.5"; - format = "setuptools"; - disabled = pythonOlder "3.7"; + version = "3.1.2"; + pyproject = true; + + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "aquatix"; repo = "ns-api"; - rev = "v${version}"; - sha256 = "0i1zkvi4mrhkh1gxzpa54mq8mb76s9nf3jxxhpqia56nkq8f8krb"; + rev = "refs/tags/v${version}"; + sha256 = "sha256-H8qxqzcGZ52W/HbTuKdnfnaYdZFaxzuUhrniS1zsL2w="; }; - propagatedBuildInputs = [ - future - pytz - ]; + build-system = [ setuptools ]; + + dependencies = [ pytz ]; # Project has no tests doCheck = false; @@ -33,7 +33,8 @@ buildPythonPackage rec { meta = with lib; { description = "Python module to query routes of the Dutch railways"; homepage = "https://github.com/aquatix/ns-api/"; - license = with licenses; [ mit ]; + changelog = "https://github.com/aquatix/ns-api/releases/tag/v${version}"; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }