Merge pull request #108777 from fabaff/bump-pyhaversion
This commit is contained in:
commit
e6a184aca0
|
@ -0,0 +1,39 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "awesomeversion";
|
||||||
|
version = "20.12.5";
|
||||||
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ludeeus";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "1jwlfqnrqlxjp30fj9bcqh7vgicmpdbn5kjdcmll4srnl87lalfg";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace setup.py --replace "main" ${version}
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ requests ];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "awesomeversion" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python module to deal with versions";
|
||||||
|
homepage = "https://github.com/ludeeus/awesomeversion";
|
||||||
|
license = with licenses; [ mit ];
|
||||||
|
maintainers = with maintainers; [ fab ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -1,40 +1,49 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
|
||||||
, fetchPypi
|
|
||||||
, pythonOlder
|
|
||||||
, aiohttp
|
, aiohttp
|
||||||
|
, aresponses
|
||||||
, async-timeout
|
, async-timeout
|
||||||
, semantic-version
|
, awesomeversion
|
||||||
, pytestrunner
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pythonAtLeast
|
||||||
|
, pytest-asyncio
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pyhaversion";
|
pname = "pyhaversion";
|
||||||
version = "3.4.2";
|
version = "20.12.1";
|
||||||
disabled = pythonOlder "3.8";
|
|
||||||
|
|
||||||
src = fetchPypi {
|
# Only 3.8.0 and beyond are supported
|
||||||
inherit pname version;
|
disabled = pythonAtLeast "3.8";
|
||||||
sha256 = "b4e49dfa0f9dae10edd072e630d902e5497daa312baad58b7df7618efe863377";
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ludeeus";
|
||||||
|
repo = pname;
|
||||||
|
rev = version;
|
||||||
|
sha256 = "17yl67dgw75dghljcfwzblm11kqnh6sxf47w62mxz86aq9zrvcxd";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
aiohttp
|
aiohttp
|
||||||
async-timeout
|
async-timeout
|
||||||
semantic-version
|
awesomeversion
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
checkInputs = [
|
||||||
pytestrunner
|
aresponses
|
||||||
|
awesomeversion
|
||||||
|
pytest-asyncio
|
||||||
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
# no tests
|
|
||||||
doCheck = false;
|
|
||||||
pythonImportsCheck = [ "pyhaversion" ];
|
pythonImportsCheck = [ "pyhaversion" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A python module to the newest version number of Home Assistant";
|
description = "Python module to the newest version number of Home Assistant";
|
||||||
homepage = "https://github.com/ludeeus/pyhaversion";
|
homepage = "https://github.com/ludeeus/pyhaversion";
|
||||||
|
changelog = "https://github.com/ludeeus/pyhaversion/releases/tag/${version}";
|
||||||
license = with licenses; [ mit ];
|
license = with licenses; [ mit ];
|
||||||
maintainers = [ maintainers.makefu ];
|
maintainers = with maintainers; [ makefu ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -541,6 +541,8 @@ in {
|
||||||
|
|
||||||
awesome-slugify = callPackage ../development/python-modules/awesome-slugify { };
|
awesome-slugify = callPackage ../development/python-modules/awesome-slugify { };
|
||||||
|
|
||||||
|
awesomeversion = callPackage ../development/python-modules/awesomeversion { };
|
||||||
|
|
||||||
awkward0 = callPackage ../development/python-modules/awkward0 { };
|
awkward0 = callPackage ../development/python-modules/awkward0 { };
|
||||||
awkward = callPackage ../development/python-modules/awkward { };
|
awkward = callPackage ../development/python-modules/awkward { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue