commit
24063d067f
4 changed files with 40 additions and 4 deletions
|
@ -30,6 +30,13 @@ buildPythonPackage rec {
|
|||
sha256 = "07x6jr4z20jxn03bxblwc8vk0ywha492cgwfhj7q97nb5cm7kx0q";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Reading the changelog I don't expect an API break in pycodestyle and pyflakes
|
||||
substituteInPlace setup.py \
|
||||
--replace "pycodestyle>=2.6.0,<2.7.0" "pycodestyle>=2.6.0,<2.8.0" \
|
||||
--replace "pyflakes>=2.2.0,<2.3.0" "pyflakes>=2.2.0,<2.4.0"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ setuptools jedi pluggy future python-jsonrpc-server ujson ]
|
||||
++ lib.optional (withProvider "autopep8") autopep8
|
||||
++ lib.optional (withProvider "mccabe") mccabe
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
keyring, numpydoc, qtconsole, qtawesome, nbconvert, mccabe, pyopengl,
|
||||
cloudpickle, pygments, spyder-kernels, qtpy, pyzmq, chardet, qdarkstyle,
|
||||
watchdog, python-language-server, pyqtwebengine, atomicwrites, pyxdg,
|
||||
diff-match-patch, three-merge, pyls-black, pyls-spyder, flake8
|
||||
diff-match-patch, three-merge, pyls-black, pyls-spyder, flake8, textdistance
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -20,11 +20,11 @@ buildPythonPackage rec {
|
|||
nativeBuildInputs = [ pyqtwebengine.wrapQtAppsHook ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
intervaltree jedi pycodestyle psutil pyflakes rope numpy scipy matplotlib pylint keyring
|
||||
intervaltree jedi pycodestyle psutil rope numpy scipy matplotlib pylint keyring
|
||||
numpydoc qtconsole qtawesome nbconvert mccabe pyopengl cloudpickle spyder-kernels
|
||||
pygments qtpy pyzmq chardet pyqtwebengine qdarkstyle watchdog python-language-server
|
||||
atomicwrites pyxdg diff-match-patch three-merge pyls-black pyls-spyder
|
||||
flake8
|
||||
flake8 textdistance
|
||||
];
|
||||
|
||||
# There is no test for spyder
|
||||
|
@ -44,9 +44,13 @@ buildPythonPackage rec {
|
|||
# remove dependency on pyqtwebengine
|
||||
# this is still part of the pyqt 5.11 version we have in nixpkgs
|
||||
sed -i /pyqtwebengine/d setup.py
|
||||
# The major version bump in watchdog is due to changes in supported
|
||||
# platforms, not API break.
|
||||
# https://github.com/gorakhargosh/watchdog/issues/761#issuecomment-777001518
|
||||
substituteInPlace setup.py \
|
||||
--replace "pyqt5<5.13" "pyqt5" \
|
||||
--replace "parso==0.7.0" "parso"
|
||||
--replace "parso==0.7.0" "parso" \
|
||||
--replace "watchdog>=0.10.3,<2.0.0" "watchdog>=0.10.3,<3.0.0"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
|
|
23
pkgs/development/python-modules/textdistance/default.nix
Normal file
23
pkgs/development/python-modules/textdistance/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{ lib, buildPythonPackage, fetchPypi }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "textdistance";
|
||||
version = "4.2.1";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "114j3ignw4y9yq1cp08p4bfw518vyr3p0h8ba2mikwy74qxxzy26";
|
||||
};
|
||||
|
||||
# There aren't tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "textdistance" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python library for comparing distance between two or more sequences";
|
||||
homepage = "https://github.com/life4/textdistance";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ eduardosm ];
|
||||
};
|
||||
}
|
|
@ -7962,6 +7962,8 @@ in {
|
|||
|
||||
test-tube = callPackage ../development/python-modules/test-tube { };
|
||||
|
||||
textdistance = callPackage ../development/python-modules/textdistance { };
|
||||
|
||||
textacy = callPackage ../development/python-modules/textacy { };
|
||||
|
||||
texttable = callPackage ../development/python-modules/texttable { };
|
||||
|
|
Loading…
Reference in a new issue