diff options
author | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-02-18 14:18:04 +0100 |
---|---|---|
committer | Frederik Rietdijk <freddyrietdijk@fridh.nl> | 2019-02-18 14:18:04 +0100 |
commit | 815b77cbe6c5de49bd59eda6310875d0c19ca704 (patch) | |
tree | 369b5beabdbf288df518b6568c94b713a97817e7 /pkgs/development/python-modules | |
parent | 97c05bda526695a11624914f2d74e69887851984 (diff) | |
parent | 107215c1d0cf485de1e15b58404e732e9e58148a (diff) | |
download | nixlib-815b77cbe6c5de49bd59eda6310875d0c19ca704.tar nixlib-815b77cbe6c5de49bd59eda6310875d0c19ca704.tar.gz nixlib-815b77cbe6c5de49bd59eda6310875d0c19ca704.tar.bz2 nixlib-815b77cbe6c5de49bd59eda6310875d0c19ca704.tar.lz nixlib-815b77cbe6c5de49bd59eda6310875d0c19ca704.tar.xz nixlib-815b77cbe6c5de49bd59eda6310875d0c19ca704.tar.zst nixlib-815b77cbe6c5de49bd59eda6310875d0c19ca704.zip |
Merge master into staging-next
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/httpretty/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/python-modules/wrf-python/default.nix | 41 |
2 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/httpretty/default.nix b/pkgs/development/python-modules/httpretty/default.nix index 9d03c7528b61..1bcf892cbf47 100644 --- a/pkgs/development/python-modules/httpretty/default.nix +++ b/pkgs/development/python-modules/httpretty/default.nix @@ -30,6 +30,8 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ six ]; + __darwinAllowLocalNetworking = true; + meta = with stdenv.lib; { homepage = "https://falcao.it/HTTPretty/"; description = "HTTP client request mocking tool"; diff --git a/pkgs/development/python-modules/wrf-python/default.nix b/pkgs/development/python-modules/wrf-python/default.nix new file mode 100644 index 000000000000..8e9358dd473a --- /dev/null +++ b/pkgs/development/python-modules/wrf-python/default.nix @@ -0,0 +1,41 @@ +{lib, fetchFromGitHub, python, pythonOlder, buildPythonPackage, gfortran, mock, xarray, wrapt, numpy, netcdf4}: + +buildPythonPackage rec { + pname = "wrf-python"; + version = "1.3.1.1"; + + src = fetchFromGitHub { + owner = "NCAR"; + repo = "wrf-python"; + rev = version; + sha256 = "12mm7x1r5md6x28vmwyh6k655pgsv6knj8ycmjbxxk8bk7qsj74h"; + }; + + propagatedBuildInputs = [ + wrapt + numpy + xarray + ]; + buildInputs = [ + gfortran + ] ++ lib.optional (pythonOlder "3.3") mock; + + checkInputs = [ + netcdf4 + ]; + + doCheck = true; + checkPhase = '' + runHook preCheck + cd ./test/ci_tests + python utests.py + runHook postCheck + ''; + + meta = { + description = "WRF postprocessing library for Python"; + homepage = http://wrf-python.rtfd.org; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ mhaselsteiner ]; + }; +} \ No newline at end of file |