mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 07:13:23 +01:00
Merge pull request #128044 from dotlambda/huisbaasje-client-tests
python3Packages.huisbaasje-client: run tests
This commit is contained in:
commit
faa341b2d0
1 changed files with 12 additions and 8 deletions
|
@ -1,33 +1,37 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, fetchPypi
|
, fetchFromGitHub
|
||||||
, aiohttp
|
, aiohttp
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "huisbaasje-client";
|
pname = "huisbaasje-client";
|
||||||
version = "0.1.0";
|
version = "0.1.0";
|
||||||
|
|
||||||
disabled = pythonOlder "3.6"; # requires python version >=3.6
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "dennisschroer";
|
||||||
sha256 = "6bc02384c37aba01719269b05882572050c80cd9abf98caa38519308e05b7db8";
|
repo = "huisbaasje-client";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "113aymffyz1nki3a43j5cyj87qa0762j38qlz0wd5px7diwjxsfl";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aiohttp
|
aiohttp
|
||||||
];
|
];
|
||||||
|
|
||||||
# no tests on PyPI, no tags on GitHub
|
checkInputs = [
|
||||||
doCheck = false;
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [ "huisbaasje.huisbaasje" ];
|
pythonImportsCheck = [ "huisbaasje.huisbaasje" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Client for Huisbaasje";
|
description = "Client for Huisbaasje";
|
||||||
homepage = "https://github.com/denniss17/huisbaasje-client";
|
homepage = "https://github.com/dennisschroer/huisbaasje-client";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ dotlambda ];
|
maintainers = with maintainers; [ dotlambda ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue