Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.11 54 lines 918 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, flit 6, async-timeout 7, lxml 8, httpx 9, pytestCheckHook 10, pytest-asyncio 11, pytest-httpx 12}: 13 14buildPythonPackage rec { 15 pname = "pyrmvtransport"; 16 version = "0.3.2"; 17 format = "pyproject"; 18 19 disabled = pythonOlder "3.6"; 20 21 src = fetchFromGitHub { 22 owner = "cgtobi"; 23 repo = pname; 24 rev = "v${version}"; 25 sha256 = "0m74m3dhxmbv10hsvs7cpshzs3pg66va5lyq94i5j1nxrl9i7spb"; 26 }; 27 28 nativeBuildInputs = [ 29 flit 30 ]; 31 32 propagatedBuildInputs = [ 33 async-timeout 34 httpx 35 lxml 36 ]; 37 38 checkInputs = [ 39 pytestCheckHook 40 pytest-asyncio 41 pytest-httpx 42 ]; 43 44 pythonImportsCheck = [ 45 "RMVtransport" 46 ]; 47 48 meta = with lib; { 49 homepage = "https://github.com/cgtobi/PyRMVtransport"; 50 description = "Get transport information from opendata.rmv.de"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ hexa ]; 53 }; 54}