From 9ddbfc92426e3bd4af656d75eb6853426eb98b9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 23 Jul 2018 21:47:18 +0200 Subject: [PATCH] python.pkgs.jaraco_functools: move expression --- .../jaraco_functools/default.nix | 25 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 16 +----------- 2 files changed, 26 insertions(+), 15 deletions(-) create mode 100644 pkgs/development/python-modules/jaraco_functools/default.nix diff --git a/pkgs/development/python-modules/jaraco_functools/default.nix b/pkgs/development/python-modules/jaraco_functools/default.nix new file mode 100644 index 000000000000..f719c12e2197 --- /dev/null +++ b/pkgs/development/python-modules/jaraco_functools/default.nix @@ -0,0 +1,25 @@ +{ lib, buildPythonPackage, fetchPypi +, setuptools_scm +, more-itertools, backports_functools_lru_cache }: + +buildPythonPackage rec { + pname = "jaraco.functools"; + version = "1.15.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1nhl0pjc7acxznhadg9wq1a6ls17ja2np8vf9psq8j66716mk2ya"; + }; + + propagatedBuildInputs = [ more-itertools backports_functools_lru_cache ]; + + doCheck = false; + + buildInputs = [ setuptools_scm ]; + + meta = with lib; { + description = "Additional functools in the spirit of stdlib's functools"; + homepage = https://github.com/jaraco/jaraco.functools; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 049ed6e43f54..fe42f0e5d27a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -17490,21 +17490,7 @@ EOF more-itertools = callPackage ../development/python-modules/more-itertools { }; - jaraco_functools = buildPythonPackage rec { - name = "jaraco.functools-${version}"; - version = "1.15.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/j/jaraco.functools/${name}.tar.gz"; - sha256 = "1nhl0pjc7acxznhadg9wq1a6ls17ja2np8vf9psq8j66716mk2ya"; - }; - - propagatedBuildInputs = with self; [ more-itertools backports_functools_lru_cache ]; - - doCheck = false; - - buildInputs = with self; [ setuptools_scm ]; - }; + jaraco_functools = callPackage ../development/python-modules/jaraco_functools { }; jaraco_classes = buildPythonPackage rec { name = "jaraco.classes-${version}";