aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/PyRMVtransport/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/PyRMVtransport/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/PyRMVtransport/default.nix48
1 files changed, 48 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/PyRMVtransport/default.nix b/nixpkgs/pkgs/development/python-modules/PyRMVtransport/default.nix
new file mode 100644
index 00000000000..1624a5fda2a
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/PyRMVtransport/default.nix
@@ -0,0 +1,48 @@
+{ lib, buildPythonPackage, fetchFromGitHub
+, flit
+, lxml, aiohttp
+, pytest, pytestcov, pytest-asyncio, pytest-mock, pytest-aiohttp, aresponses
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+ pname = "PyRMVtransport";
+ version = "0.2.9";
+ format = "pyproject";
+ disabled = pythonOlder "3.6";
+
+ src = fetchFromGitHub {
+ owner = "cgtobi";
+ repo = pname;
+ rev = "v${version}";
+ sha256 = "1h3d0yxzrfi47zil5gr086v0780q768z8v5psvcikqw852f93vxb";
+ };
+
+ nativeBuildInputs = [
+ flit
+ ];
+
+ propagatedBuildInputs = [
+ aiohttp
+ lxml
+ ];
+
+ checkInputs = [
+ pytest
+ pytestcov
+ pytest-asyncio
+ pytest-mock
+ pytest-aiohttp
+ aresponses
+ ];
+ checkPhase = ''
+ pytest --cov=RMVtransport tests
+ '';
+
+ meta = with lib; {
+ homepage = "https://github.com/cgtobi/PyRMVtransport";
+ description = "Get transport information from opendata.rmv.de";
+ license = licenses.mit;
+ maintainers = with maintainers; [ hexa ];
+ };
+}