mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 02:05:02 +00:00
Merge master into staging-next
This commit is contained in:
@@ -3,12 +3,15 @@
|
||||
, fetchPypi
|
||||
, curtsies
|
||||
, greenlet
|
||||
, mock
|
||||
, jedi
|
||||
, pygments
|
||||
, pyxdg
|
||||
, requests
|
||||
, substituteAll
|
||||
, urwid
|
||||
, which }:
|
||||
, watchdog
|
||||
, which
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "bpython";
|
||||
@@ -24,17 +27,22 @@ buildPythonPackage rec {
|
||||
which = "${which}/bin/which";
|
||||
})];
|
||||
|
||||
propagatedBuildInputs = [ curtsies greenlet pygments requests urwid ];
|
||||
propagatedBuildInputs = [
|
||||
curtsies
|
||||
greenlet
|
||||
pygments
|
||||
pyxdg
|
||||
requests
|
||||
urwid
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace "$out/share/applications/org.bpython-interpreter.bpython.desktop" \
|
||||
--replace "Exec=/usr/bin/bpython" "Exec=$out/bin/bpython"
|
||||
'';
|
||||
|
||||
checkInputs = [ mock ];
|
||||
|
||||
# tests fail: https://github.com/bpython/bpython/issues/712
|
||||
doCheck = false;
|
||||
checkInputs = [ jedi watchdog ];
|
||||
pythonImportsCheck = [ "bpython" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A fancy curses interface to the Python interactive interpreter";
|
||||
|
||||
@@ -1,22 +1,14 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, fetchpatch, pythonOlder, blessings, mock, nose, pyte, wcwidth, typing ? null}:
|
||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder, blessings, mock, nose, pyte, cwcwidth, typing ? null}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "curtsies";
|
||||
version = "0.3.0";
|
||||
version = "0.3.5";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "89c802ec051d01dec6fc983e9856a3706e4ea8265d2940b1f6d504a9e26ed3a9";
|
||||
sha256 = "1g8dwafx4vx06isjkn28r3cwb0hw1bv67lgygaz34yk66lrzz1x5";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Fix dependency on typing. Remove with the next release
|
||||
(fetchpatch {
|
||||
url = "https://github.com/bpython/curtsies/commit/217b4f83e954837f8adc4c549c1f2f9f2bb272a7.patch";
|
||||
sha256 = "1d3zwx9c7i0drb4nvydalm9mr83jrvdm75ffgisri89h337hiffs";
|
||||
})
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ blessings wcwidth ]
|
||||
propagatedBuildInputs = [ blessings cwcwidth ]
|
||||
++ lib.optionals (pythonOlder "3.5") [ typing ];
|
||||
|
||||
checkInputs = [ mock pyte nose ];
|
||||
|
||||
34
pkgs/development/python-modules/cwcwidth/default.nix
Normal file
34
pkgs/development/python-modules/cwcwidth/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, cython, pytestCheckHook }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cwcwidth";
|
||||
version = "0.1.4";
|
||||
format = "pyproject";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1azrphpkcyggg38xvkfb9dpc4xmmm90p02kf8dkqd4d6j5w96aj8";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ cython ];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
# Hack needed to make pytest + cython work
|
||||
# https://github.com/NixOS/nixpkgs/pull/82410#issuecomment-827186298
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
cp -r $TMP/$sourceRoot/tests $HOME
|
||||
pushd $HOME
|
||||
'';
|
||||
postCheck = "popd";
|
||||
|
||||
pythonImportsCheck = [ "cwcwidth" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python bindings for wc(s)width";
|
||||
homepage = "https://github.com/sebastinas/cwcwidth";
|
||||
changelog = "https://github.com/sebastinas/cwcwidth/blob/main/CHANGELOG.md";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ eduardosm ];
|
||||
};
|
||||
}
|
||||
42
pkgs/development/python-modules/humblewx/default.nix
Normal file
42
pkgs/development/python-modules/humblewx/default.nix
Normal file
@@ -0,0 +1,42 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, wxPython_4_0
|
||||
, python3
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "humblewx";
|
||||
version = "0.2.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "thetimelineproj";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0fv8gwlbcj000qq34inbwgxf0xgibs590dsyqnw0mmyb7f1iq210";
|
||||
};
|
||||
|
||||
# timeline is not compatible with wxPython_4_1. reported upstream
|
||||
propagatedBuildInputs = [ wxPython_4_0 ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
for i in examples/*; do
|
||||
${python3.interpreter} $i
|
||||
done
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
# Unable to access the X Display, is $DISPLAY set properly?
|
||||
# would have to use nixos module tests, but it is not worth it
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "humblewx" ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/thetimelineproj/humblewx";
|
||||
description = "Library that simplifies creating user interfaces with wxPython";
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [ davidak ];
|
||||
};
|
||||
}
|
||||
@@ -6,13 +6,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pychannels";
|
||||
version = "1.2.2";
|
||||
version = "1.2.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "fancybits";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "0dqc0vhf6c5r3g7nfbpa668x6z2zxrznk6h907s6sxkq4sbqnhqf";
|
||||
sha256 = "sha256-E+VL4mJ2KxS5bJZc3Va+wvyVjT55LJz+1wHkxDRa85s=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
@@ -11,12 +11,12 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pylast";
|
||||
version = "4.2.0";
|
||||
version = "4.2.1";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-w/mkAUUgj7L7Xv+nz1pI1TYKfihH3S3MbxaNQ4VtoH0=";
|
||||
sha256 = "sha256-R1enQk6luuBiobMPDn5x1SXx7zUI/5c8dPtyWkmG/18=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
|
||||
33
pkgs/development/python-modules/pysvg-py3/default.nix
Normal file
33
pkgs/development/python-modules/pysvg-py3/default.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildPythonPackage
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pysvg-py3";
|
||||
version = "0.2.2-post3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "alorence";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1slync0knpcjgl4xpym8w4249iy6vmrwbarpnbjzn9xca8g1h2f0";
|
||||
};
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
mkdir testoutput
|
||||
${python.interpreter} sample/tutorial.py
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "pysvg" ];
|
||||
|
||||
meta = {
|
||||
homepage = "https://github.com/alorence/pysvg-py3";
|
||||
description = "Creating SVG with Python";
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = with lib.maintainers; [ davidak ];
|
||||
};
|
||||
}
|
||||
@@ -13,13 +13,13 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "slixmpp";
|
||||
version = "1.7.0";
|
||||
version = "1.7.1";
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-fy7sRKS7ih4JmjOW/noL8qJ1xWVpQLbBbObHnMwT3Bc=";
|
||||
sha256 = "sha256-mvg23FdHJZeIZRcm8GLWmm9DDTBt29jmsUHB/smVSec=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
||||
Reference in New Issue
Block a user