nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytz,
6 setuptools,
7}:
8
9buildPythonPackage rec {
10 pname = "nsapi";
11 version = "3.2.1";
12 pyproject = true;
13
14 src = fetchFromGitHub {
15 owner = "aquatix";
16 repo = "ns-api";
17 tag = "v${version}";
18 hash = "sha256-eZT6DU68wcEYyoFejECuluzit9MDA269zaKVFWpSuc8=";
19 };
20
21 build-system = [ setuptools ];
22
23 dependencies = [ pytz ];
24
25 # Project has no tests
26 doCheck = false;
27
28 pythonImportsCheck = [ "ns_api" ];
29
30 meta = {
31 description = "Python module to query routes of the Dutch railways";
32 homepage = "https://github.com/aquatix/ns-api/";
33 changelog = "https://github.com/aquatix/ns-api/releases/tag/${src.tag}";
34 license = lib.licenses.mit;
35 maintainers = with lib.maintainers; [ fab ];
36 };
37}