mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 08:59:42 +00:00
pythonPackages.PyRMVtransport: init at v0.2.9
This commit is contained in:
parent
29f08dc751
commit
8e1bae55ee
48
pkgs/development/python-modules/PyRMVtransport/default.nix
Normal file
48
pkgs/development/python-modules/PyRMVtransport/default.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -1287,6 +1287,8 @@ in {
|
|||
|
||||
pyres = callPackage ../development/python-modules/pyres { };
|
||||
|
||||
PyRMVtransport = callPackage ../development/python-modules/PyRMVtransport { };
|
||||
|
||||
pyqt4 = callPackage ../development/python-modules/pyqt/4.x.nix {
|
||||
inherit (pkgs) pkgconfig;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue