nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at r-updates 63 lines 1.3 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 fetchpatch, 6 flit, 7 async-timeout, 8 lxml, 9 httpx, 10 pytestCheckHook, 11 pytest-asyncio, 12 pytest-httpx, 13}: 14 15buildPythonPackage rec { 16 pname = "pyrmvtransport"; 17 version = "0.3.3"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "cgtobi"; 22 repo = "pyrmvtransport"; 23 rev = "v${version}"; 24 hash = "sha256-nFxGEyO+wyRzPayjjv8WNIJ+XIWbVn0dyyjQKHiyr40="; 25 }; 26 27 nativeBuildInputs = [ flit ]; 28 29 propagatedBuildInputs = [ 30 async-timeout 31 httpx 32 lxml 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 pytest-asyncio 38 pytest-httpx 39 ]; 40 41 disabledTests = [ 42 # should fail, but times out 43 "test__query_rmv_api_fail" 44 ]; 45 46 patches = [ 47 # Can be removed with next release, https://github.com/cgtobi/PyRMVtransport/pull/55 48 (fetchpatch { 49 name = "update-tests.patch"; 50 url = "https://github.com/cgtobi/PyRMVtransport/commit/fe93b3d9d625f9ccf8eb7b0c39e0ff41c72d2e77.patch"; 51 hash = "sha256-t+GP5VG1S86vVSsisl85ZHBtOqxIi7QS83DA+HgRet4="; 52 }) 53 ]; 54 55 pythonImportsCheck = [ "RMVtransport" ]; 56 57 meta = { 58 homepage = "https://github.com/cgtobi/PyRMVtransport"; 59 description = "Get transport information from opendata.rmv.de"; 60 license = lib.licenses.mit; 61 maintainers = with lib.maintainers; [ hexa ]; 62 }; 63}