diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-04-01 11:56:38 +0200 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2021-04-01 11:56:38 +0200 |
commit | f9848e661002288427303b05a30d2cb74c9867fc (patch) | |
tree | 39ee638e97e0bd847ea2fd9b02929afb71c7ddb1 /pkgs/development/python-modules/accuweather | |
parent | 6373ef78c6b954bebeacf22ed6b7887bf405b0f5 (diff) | |
download | nixpkgs-f9848e661002288427303b05a30d2cb74c9867fc.tar nixpkgs-f9848e661002288427303b05a30d2cb74c9867fc.tar.gz nixpkgs-f9848e661002288427303b05a30d2cb74c9867fc.tar.bz2 nixpkgs-f9848e661002288427303b05a30d2cb74c9867fc.tar.lz nixpkgs-f9848e661002288427303b05a30d2cb74c9867fc.tar.xz nixpkgs-f9848e661002288427303b05a30d2cb74c9867fc.tar.zst nixpkgs-f9848e661002288427303b05a30d2cb74c9867fc.zip |
python3Packages.accuweather: 0.1.0 -> 0.1.1
Diffstat (limited to 'pkgs/development/python-modules/accuweather')
-rw-r--r-- | pkgs/development/python-modules/accuweather/default.nix | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/accuweather/default.nix b/pkgs/development/python-modules/accuweather/default.nix index da2feef18c8..01a299c89fd 100644 --- a/pkgs/development/python-modules/accuweather/default.nix +++ b/pkgs/development/python-modules/accuweather/default.nix @@ -1,47 +1,48 @@ { lib -, buildPythonPackage -, fetchFromGitHub -, pythonOlder -, pytestrunner , aiohttp , aioresponses -, pytestCheckHook -, pytestcov +, buildPythonPackage +, fetchFromGitHub , pytest-asyncio +, pytest-error-for-skips +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { pname = "accuweather"; - version = "0.1.0"; - + version = "0.1.1"; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "bieniu"; repo = pname; rev = version; - sha256 = "0jp2x7fgg1shgr1fx296rni00lmjjmjgg141giljzizgd04dwgy3"; + sha256 = "sha256-fjOwa13hxY8/gCM6TCAFWVmEY1oZyqKyc6o3OSsxHpY="; }; postPatch = '' - # we don't have pytest-error-for-skips packaged - substituteInPlace pytest.ini --replace "--error-for-skips" "" + substituteInPlace setup.py \ + --replace "pytest-runner" "" + substituteInPlace pytest.ini \ + --replace "--cov --cov-report term-missing" "" ''; - nativeBuildInputs = [ pytestrunner ]; - - propagatedBuildInputs = [ aiohttp ]; + propagatedBuildInputs = [ + aiohttp + ]; checkInputs = [ aioresponses - pytestCheckHook - pytestcov pytest-asyncio + pytest-error-for-skips + pytestCheckHook ]; + pythonImportsCheck = [ "accuweather" ]; + meta = with lib; { - description = - "Python wrapper for getting weather data from AccuWeather servers."; + description = "Python wrapper for getting weather data from AccuWeather servers"; homepage = "https://github.com/bieniu/accuweather"; license = licenses.asl20; maintainers = with maintainers; [ jamiemagee ]; |