diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2018-07-26 16:18:53 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-07-26 16:18:53 +0200 |
commit | f59e6f4037a741d41bee04e9b1ee684aae956d86 (patch) | |
tree | 7a4d525b632c96a333c4deb4550b77e518cdc1f9 /pkgs/development/python-modules | |
parent | 38ac3b34373f1eb75ce85edca60f22ee6a2bcd85 (diff) | |
parent | 812f4749ae76262490e5e3984f8676953da1f5dc (diff) | |
download | nixlib-f59e6f4037a741d41bee04e9b1ee684aae956d86.tar nixlib-f59e6f4037a741d41bee04e9b1ee684aae956d86.tar.gz nixlib-f59e6f4037a741d41bee04e9b1ee684aae956d86.tar.bz2 nixlib-f59e6f4037a741d41bee04e9b1ee684aae956d86.tar.lz nixlib-f59e6f4037a741d41bee04e9b1ee684aae956d86.tar.xz nixlib-f59e6f4037a741d41bee04e9b1ee684aae956d86.tar.zst nixlib-f59e6f4037a741d41bee04e9b1ee684aae956d86.zip |
Merge master into staging
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/black/default.nix | 19 | ||||
-rw-r--r-- | pkgs/development/python-modules/pyserial/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/python-modules/wxPython/4.0.nix | 41 |
3 files changed, 57 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/black/default.nix b/pkgs/development/python-modules/black/default.nix index f48310ceebc6..b95ed080e66a 100644 --- a/pkgs/development/python-modules/black/default.nix +++ b/pkgs/development/python-modules/black/default.nix @@ -1,17 +1,28 @@ -{ stdenv, buildPythonPackage, fetchPypi, pythonOlder, attrs, click }: +{ stdenv, buildPythonPackage, fetchPypi, pythonOlder +, attrs, click, toml, appdirs +, glibcLocales, pytest }: buildPythonPackage rec { pname = "black"; - version = "18.4a0"; + version = "18.6b4"; disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "04dffr4wmzs4vf2xj0cxp03hv04x0kk06qyzx6jjrp1mq0z3n2rr"; + sha256 = "0i4sfqgz6w15vd50kbhi7g7rifgqlf8yfr8y78rypd56q64qn592"; }; - propagatedBuildInputs = [ attrs click ]; + checkInputs = [ pytest glibcLocales ]; + + checkPhase = '' + # no idea, why those fail. + LC_ALL="en_US.UTF-8" HOME="$NIX_BUILD_TOP" \ + pytest \ + -k "not test_cache_multiple_files and not test_failed_formatting_does_not_get_cached" + ''; + + propagatedBuildInputs = [ attrs appdirs click toml ]; meta = with stdenv.lib; { description = "The uncompromising Python code formatter"; diff --git a/pkgs/development/python-modules/pyserial/default.nix b/pkgs/development/python-modules/pyserial/default.nix index 508104d33129..c7787a42691b 100644 --- a/pkgs/development/python-modules/pyserial/default.nix +++ b/pkgs/development/python-modules/pyserial/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { }; checkPhase = "python -m unittest discover -s test"; - doInstallCheck = !hostPlatform.isDarwin; # broken on darwin + doCheck = !hostPlatform.isDarwin; # broken on darwin meta = with lib; { homepage = "https://github.com/pyserial/pyserial"; diff --git a/pkgs/development/python-modules/wxPython/4.0.nix b/pkgs/development/python-modules/wxPython/4.0.nix new file mode 100644 index 000000000000..39e3d7fb3fa1 --- /dev/null +++ b/pkgs/development/python-modules/wxPython/4.0.nix @@ -0,0 +1,41 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pkgconfig +, gtk3 +, libjpeg +, libtiff +, SDL +, gst-plugins-base +, libnotify +, freeglut +, xorg +, which +}: + +buildPythonPackage rec { + pname = "wxPython"; + version = "4.0.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "8d0dfc0146c24749ce00d575e35cc2826372e809d5bc4a57bde6c89031b59e75"; + }; + + nativeBuildInputs = [ + pkgconfig + ]; + + buildInputs = [ + gtk3 libjpeg libtiff SDL gst-plugins-base libnotify freeglut xorg.libSM + which + ]; + + + meta = { + description = "Cross platform GUI toolkit for Python, Phoenix version"; + homepage = http://wxpython.org/; + license = lib.licenses.wxWindows; + }; + +} \ No newline at end of file |