taxi: add tests and remove application/backends
This commit is contained in:
parent
b0c6f4ae05
commit
f5148df5a6
1 changed files with 16 additions and 10 deletions
|
@ -1,32 +1,38 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, appdirs
|
, appdirs
|
||||||
, requests
|
, requests
|
||||||
, click
|
, click
|
||||||
, setuptools
|
, setuptools
|
||||||
, backends ? [ ]
|
, pytestCheckHook
|
||||||
|
, freezegun
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "taxi";
|
pname = "taxi";
|
||||||
version = "6.1.1";
|
version = "6.1.1";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit version;
|
owner = "sephii";
|
||||||
pname = "taxi";
|
repo = "taxi";
|
||||||
sha256 = "b2562ed58bd6eae7896f4f8e48dbee9845cd2d452b26dd15c26f839b4864cb02";
|
rev = version;
|
||||||
|
sha256 = "sha256-iIy3odDX3QzVG80AFp81m8AYKES4JjlDp49GGpuIHLI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# No tests in pypy package
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
appdirs
|
appdirs
|
||||||
requests
|
requests
|
||||||
click
|
click
|
||||||
setuptools
|
setuptools
|
||||||
] ++ backends;
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
freezegun
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "taxi" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://github.com/sephii/taxi/";
|
homepage = "https://github.com/sephii/taxi/";
|
||||||
|
|
Loading…
Reference in a new issue