summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pyhaversion/default.nix
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@gmail.com>2021-01-09 23:20:53 +0100
committerSandro Jäckel <sandro.jaeckel@gmail.com>2021-01-11 12:11:13 +0100
commit7d08eaaad0c751c47cfbd1768617f25d23404d14 (patch)
treebfd27280578c645ce75d6f356b60ade670aac840 /pkgs/development/python-modules/pyhaversion/default.nix
parentpythonPackages.notmuch: Disable tests (diff)
downloadnixpkgs-7d08eaaad0c751c47cfbd1768617f25d23404d14.tar.gz
pythonPackages.pyhaversion: Mark >= Python 3.8 only, disable tests
Diffstat (limited to 'pkgs/development/python-modules/pyhaversion/default.nix')
-rw-r--r--pkgs/development/python-modules/pyhaversion/default.nix21
1 files changed, 6 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/pyhaversion/default.nix b/pkgs/development/python-modules/pyhaversion/default.nix
index 1a32851e6f38..27d750a5df76 100644
--- a/pkgs/development/python-modules/pyhaversion/default.nix
+++ b/pkgs/development/python-modules/pyhaversion/default.nix
@@ -1,24 +1,16 @@
{ lib
, buildPythonPackage
, fetchPypi
-, isPy3k
-# propagatedBuildInputs
+, pythonOlder
, aiohttp
, async-timeout
, semantic-version
-# buildInputs
, pytestrunner
-# checkInputs
-, pytest
-, pytest-asyncio
-, aresponses
}:
buildPythonPackage rec {
pname = "pyhaversion";
version = "3.4.2";
-
- # needs aiohttp which is py3k-only
- disabled = !isPy3k;
+ disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
@@ -35,15 +27,14 @@ buildPythonPackage rec {
pytestrunner
];
- checkInputs = [
- pytest
- pytest-asyncio
- aresponses
- ];
+ # no tests
+ doCheck = false;
+ pythonImportsCheck = [ "pyhaversion" ];
meta = with lib; {
description = "A python module to the newest version number of Home Assistant";
homepage = "https://github.com/ludeeus/pyhaversion";
+ license = with licenses; [ mit ];
maintainers = [ maintainers.makefu ];
};
}