git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.pyhaversion: 21.10.0 -> 21.11.1
commit4537204529edf803bc136ae5b3bceaaa90506013 authorFabian Affolter <mail@fabian-affolter.ch> dateWed 24 Nov 2021, 09:24 (5 years ago) parent40c3bc3
1 file changed+13−6
pkgs/development/python-modules/pyhaversion/default.nix+13−6
pkgs/development/python-modules/pyhaversion/default.nix+13−6
@@ -1,7 +1,6 @@
11{ lib
22, aiohttp
33, aresponses
4−, async-timeout
54, awesomeversion
65, buildPythonPackage
76, fetchFromGitHub
@@ -12,21 +11,20 @@
1211
1312buildPythonPackage rec {
1413 pname = "pyhaversion";
15− version = "21.10.0";
14+ version = "21.11.1";
15+ format = "setuptools";
1616
17− # Only 3.8.0 and beyond are supported
1817 disabled = pythonOlder "3.8";
1918
2019 src = fetchFromGitHub {
2120 owner = "ludeeus";
2221 repo = pname;
2322 rev = version;
24− sha256 = "sha256-EvVkewFgkfYL6BjmJ/IWeuCyR+0R0ZxI35i9sxKcqxo=";
23+ sha256 = "sha256-wh6NJRDgOrEHYEN3QlC4lOZHPnPeiPCJFF1xLoixQ14=";
2524 };
2625
2726 propagatedBuildInputs = [
2827 aiohttp
29− async-timeout
3028 awesomeversion
3129 ];
3230
@@ -36,7 +34,16 @@ buildPythonPackage rec {
3634 pytestCheckHook
3735 ];
3836
39− pythonImportsCheck = [ "pyhaversion" ];
37+ postPatch = ''
38+ # Upstream doesn't set a version for the tagged releases
39+ substituteInPlace setup.py \
40+ --replace "main" ${version}
41+ '';
42+
43+
44+ pythonImportsCheck = [
45+ "pyhaversion"
46+ ];
4047
4148 meta = with lib; {
4249 description = "Python module to the newest version number of Home Assistant";