diff --git a/pkgs/development/python-modules/inflect/default.nix b/pkgs/development/python-modules/inflect/default.nix new file mode 100644 index 000000000000..94b0fc801fa9 --- /dev/null +++ b/pkgs/development/python-modules/inflect/default.nix @@ -0,0 +1,15 @@ +{ buildPythonPackage, fetchPypi, setuptools_scm, nose, six }: + +buildPythonPackage rec { + pname = "inflect"; + version = "1.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "0ll34l5b2wsbcw9i2hvkhmq6szxrp7fzc2hjmpz1cvny81bhg3kx"; + }; + + buildInputs = [ setuptools_scm ]; + checkInputs = [ nose ]; + propagatedBuildInputs = [ six ]; +} diff --git a/pkgs/development/python-modules/irc/default.nix b/pkgs/development/python-modules/irc/default.nix new file mode 100644 index 000000000000..2df571dde8e6 --- /dev/null +++ b/pkgs/development/python-modules/irc/default.nix @@ -0,0 +1,25 @@ +{ buildPythonPackage, fetchPypi +, six, jaraco_logging, jaraco_text, jaraco_stream, pytz, jaraco_itertools +, setuptools_scm }: + +buildPythonPackage rec { + pname = "irc"; + version = "16.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "0l2fh2aqs54w4xihckgyz575qkd6mgzbp3zll4g0z9j6h88ghqf1"; + }; + + doCheck = false; + + buildInputs = [ setuptools_scm ]; + propagatedBuildInputs = [ + six + jaraco_logging + jaraco_text + jaraco_stream + pytz + jaraco_itertools + ]; +} diff --git a/pkgs/development/python-modules/jaraco_classes/default.nix b/pkgs/development/python-modules/jaraco_classes/default.nix new file mode 100644 index 000000000000..35c70c3c0330 --- /dev/null +++ b/pkgs/development/python-modules/jaraco_classes/default.nix @@ -0,0 +1,13 @@ +{ buildPythonPackage, fetchPypi, setuptools_scm, six }: + +buildPythonPackage rec { + pname = "jaraco.classes"; + version = "1.5"; + src = fetchPypi { + inherit pname version; + sha256 = "002zsifikv6qwigkjlij7jhyvbwv6793m8h9ckbkx2jizmgc80fi"; + }; + doCheck = false; + buildInputs = [ setuptools_scm ]; + propagatedBuildInputs = [ six ]; +} diff --git a/pkgs/development/python-modules/jaraco_collections/default.nix b/pkgs/development/python-modules/jaraco_collections/default.nix new file mode 100644 index 000000000000..0f2e53715cc3 --- /dev/null +++ b/pkgs/development/python-modules/jaraco_collections/default.nix @@ -0,0 +1,20 @@ +{ buildPythonPackage, fetchPypi, setuptools_scm +, six, jaraco_classes }: + +buildPythonPackage rec { + pname = "jaraco.collections"; + version = "1.5.3"; + src = fetchPypi { + inherit pname version; + sha256 = "05cmcq5k39bx73kjr00xfm2yr0npyrv89cxdh41ni6x8pkki1jyr"; + }; + + doCheck = false; + buildInputs = [ setuptools_scm ]; + propagatedBuildInputs = [ six jaraco_classes ]; + + # break dependency cycle + patchPhase = '' + sed -i "/'jaraco.text',/d" setup.py + ''; +} diff --git a/pkgs/development/python-modules/jaraco_itertools/default.nix b/pkgs/development/python-modules/jaraco_itertools/default.nix new file mode 100644 index 000000000000..c7a66c890407 --- /dev/null +++ b/pkgs/development/python-modules/jaraco_itertools/default.nix @@ -0,0 +1,14 @@ +{ buildPythonPackage, fetchPypi, setuptools_scm +, inflect, more-itertools, six }: + +buildPythonPackage rec { + pname = "jaraco.itertools"; + version = "2.4"; + src = fetchPypi { + inherit pname version; + sha256 = "18cwjbnnnbwld70s3r24sys3blcss84d9ha9hhxsg2d35f9vywd5"; + }; + doCheck = false; + buildInputs = [ setuptools_scm ]; + propagatedBuildInputs = [ inflect more-itertools six ]; +} diff --git a/pkgs/development/python-modules/jaraco_logging/default.nix b/pkgs/development/python-modules/jaraco_logging/default.nix new file mode 100644 index 000000000000..2aeb0dc3fa40 --- /dev/null +++ b/pkgs/development/python-modules/jaraco_logging/default.nix @@ -0,0 +1,14 @@ +{ buildPythonPackage, fetchPypi, setuptools_scm +, tempora, six }: + +buildPythonPackage rec { + pname = "jaraco.logging"; + version = "1.5.2"; + src = fetchPypi { + inherit pname version; + sha256 = "199pgwx9ziab3gxg6p0c24z8dp3bjpsvvshnmlph9zjsssq0xc93"; + }; + doCheck = false; + buildInputs = [ setuptools_scm ]; + propagatedBuildInputs = [ tempora six ]; +} diff --git a/pkgs/development/python-modules/jaraco_stream/default.nix b/pkgs/development/python-modules/jaraco_stream/default.nix new file mode 100644 index 000000000000..5788a52dfff7 --- /dev/null +++ b/pkgs/development/python-modules/jaraco_stream/default.nix @@ -0,0 +1,13 @@ +{ buildPythonPackage, fetchPypi, setuptools_scm, six }: + +buildPythonPackage rec { + pname = "jaraco.stream"; + version = "1.2"; + src = fetchPypi { + inherit pname version; + sha256 = "06qsjyab56vi0ikr819ghb7f8ymf09n92vla7gcn8j12113m2mib"; + }; + doCheck = false; + buildInputs = [ setuptools_scm ]; + propagatedBuildInputs = [ six ]; +} diff --git a/pkgs/development/python-modules/jaraco_text/default.nix b/pkgs/development/python-modules/jaraco_text/default.nix new file mode 100644 index 000000000000..01309e0c4d92 --- /dev/null +++ b/pkgs/development/python-modules/jaraco_text/default.nix @@ -0,0 +1,14 @@ +{ buildPythonPackage, fetchPypi, setuptools_scm +, jaraco_functools, jaraco_collections }: + +buildPythonPackage rec { + pname = "jaraco.text"; + version = "1.10.1"; + src = fetchPypi { + inherit pname version; + sha256 = "07ccc0zc28sb1kyfyviw3n8f581qynrshqvqg1xsp4gkf1m2ibhh"; + }; + doCheck = false; + buildInputs =[ setuptools_scm ]; + propagatedBuildInputs = [ jaraco_functools jaraco_collections ]; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fdbb4f90babd..0bc38b0f8dfe 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16960,137 +16960,25 @@ EOF python-telegram-bot = callPackage ../development/python-modules/python-telegram-bot { }; - irc = buildPythonPackage rec { - name = "irc-${version}"; - version = "14.2.2"; + irc = callPackage ../development/python-modules/irc { }; - src = pkgs.fetchurl { - url = "mirror://pypi/i/irc/${name}.tar.gz"; - sha256 = "0a6qjl4fjj98wxc8gaf5rxg94v7a0ydjdiw6pcka5fy814xl2i28"; - }; + jaraco_logging = callPackage ../development/python-modules/jaraco_logging { }; - doCheck = false; + jaraco_text = callPackage ../development/python-modules/jaraco_text { }; - buildInputs = with self; [ setuptools_scm ]; + jaraco_collections = callPackage ../development/python-modules/jaraco_collections { }; - propagatedBuildInputs = with self; [ - six jaraco_logging jaraco_text jaraco_stream jaraco_stream pytz - jaraco_itertools - ]; - }; + jaraco_itertools = callPackage ../development/python-modules/jaraco_itertools { }; - jaraco_logging = buildPythonPackage rec { - name = "jaraco.logging-${version}"; - version = "1.5"; - - src = pkgs.fetchurl { - url = "mirror://pypi/j/jaraco.logging/${name}.tar.gz"; - sha256 = "1lvw9zphiymiiar47kd0x0dbc9x2jks8w1kirg3ff8nd80k95j05"; - }; - - doCheck = false; - - buildInputs = with self; [ setuptools_scm ]; - - propagatedBuildInputs = with self; [ tempora six ]; - }; - - jaraco_text = buildPythonPackage rec { - name = "jaraco.text-${version}"; - version = "1.7"; - - src = pkgs.fetchurl { - url = "mirror://pypi/j/jaraco.text/${name}.tar.gz"; - sha256 = "07ccc0zc28sb1kyfyviw3n8f581qynrshqvqg1xsp4gkf1m2ibhh"; - }; - - doCheck = false; - - buildInputs = with self; [ setuptools_scm ]; - - propagatedBuildInputs = with self; [ jaraco_functools jaraco_collections ]; - }; - - jaraco_collections = buildPythonPackage rec { - name = "jaraco.collections-${version}"; - version = "1.3.2"; - - src = pkgs.fetchurl { - url = "mirror://pypi/j/jaraco.collections/${name}.tar.gz"; - sha256 = "0mvyn9d4bs5zw9z84wwsbgff6s28vg6h4i8qhyb667fqi7xgr1w5"; - }; - - doCheck = false; - - buildInputs = with self; [ setuptools_scm ]; - - propagatedBuildInputs = with self; [ six jaraco_classes ]; - - # break dependency cycle - patchPhase = '' - sed -i "/'jaraco.text',/d" setup.py - ''; - }; - - jaraco_itertools = buildPythonPackage rec { - name = "jaraco.itertools-${version}"; - version = "1.7.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/j/jaraco.itertools/${name}.tar.gz"; - sha256 = "0yvxp5nwhy4wc4naq5v152vbnxqcn5k031g089chq2lk5kr7np5z"; - }; - - doCheck = false; - - buildInputs = with self; [ setuptools_scm ]; - - propagatedBuildInputs = with self; [ inflect more-itertools six ]; - }; - - inflect = buildPythonPackage rec { - name = "inflect-${version}"; - version = "0.2.5"; - - src = pkgs.fetchurl { - url = "mirror://pypi/i/inflect/${name}.tar.gz"; - sha256 = "065866j9msrivbr74yrag53ch0lav7xz18qvjkiblkhinbfch510"; - }; - }; + inflect = callPackage ../development/python-modules/inflect { }; more-itertools = callPackage ../development/python-modules/more-itertools { }; jaraco_functools = callPackage ../development/python-modules/jaraco_functools { }; - jaraco_classes = buildPythonPackage rec { - name = "jaraco.classes-${version}"; - version = "1.4"; + jaraco_classes = callPackage ../development/python-modules/jaraco_classes { }; - src = pkgs.fetchurl { - url = "mirror://pypi/j/jaraco.classes/${name}.tar.gz"; - sha256 = "1yn1wa6m5rdhk4grmnycx3i5pzzdlwfx83h944c9g5rqggmg612h"; - }; - - doCheck = false; - - buildInputs = with self; [ setuptools_scm ]; - }; - - jaraco_stream = buildPythonPackage rec { - name = "jaraco.stream-${version}"; - version = "1.1.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/j/jaraco.stream/${name}.tar.gz"; - sha256 = "0iwg5ljc2z8wwyl2wv7lldwviwd0q4rsccascyqvqqs0l2rcn4gi"; - }; - - doCheck = false; - - buildInputs = with self; [ setuptools_scm ]; - - propagatedBuildInputs = with self; [ six ]; - }; + jaraco_stream = callPackage ../development/python-modules/jaraco_stream { }; tempora= callPackage ../development/python-modules/tempora { };