biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / pyrmvtransport / default.nix
blob89eea0f2ecbb6b7ae7eae0d8b1e1609e4a3823a1
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   fetchpatch,
6   pythonOlder,
7   flit,
8   async-timeout,
9   lxml,
10   httpx,
11   pytestCheckHook,
12   pytest-asyncio,
13   pytest-httpx,
16 buildPythonPackage rec {
17   pname = "pyrmvtransport";
18   version = "0.3.3";
19   format = "pyproject";
21   disabled = pythonOlder "3.6";
23   src = fetchFromGitHub {
24     owner = "cgtobi";
25     repo = pname;
26     rev = "v${version}";
27     hash = "sha256-nFxGEyO+wyRzPayjjv8WNIJ+XIWbVn0dyyjQKHiyr40=";
28   };
30   nativeBuildInputs = [ flit ];
32   propagatedBuildInputs = [
33     async-timeout
34     httpx
35     lxml
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40     pytest-asyncio
41     pytest-httpx
42   ];
44   disabledTests = [
45     # should fail, but times out
46     "test__query_rmv_api_fail"
47   ];
49   patches = [
50     # Can be removed with next release, https://github.com/cgtobi/PyRMVtransport/pull/55
51     (fetchpatch {
52       name = "update-tests.patch";
53       url = "https://github.com/cgtobi/PyRMVtransport/commit/fe93b3d9d625f9ccf8eb7b0c39e0ff41c72d2e77.patch";
54       hash = "sha256-t+GP5VG1S86vVSsisl85ZHBtOqxIi7QS83DA+HgRet4=";
55     })
56   ];
58   pythonImportsCheck = [ "RMVtransport" ];
60   meta = with lib; {
61     homepage = "https://github.com/cgtobi/PyRMVtransport";
62     description = "Get transport information from opendata.rmv.de";
63     license = licenses.mit;
64     maintainers = with maintainers; [ hexa ];
65   };