From 4e2d86cf7fc4b6b0452d3f256d7349868c5bf199 Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Sat, 31 Mar 2018 11:35:57 +0200 Subject: [PATCH] pythonPackages.attrdict: Move to own file --- .../python-modules/attrdict/default.nix | 19 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +---------------- 2 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/attrdict/default.nix diff --git a/pkgs/development/python-modules/attrdict/default.nix b/pkgs/development/python-modules/attrdict/default.nix new file mode 100644 index 000000000000..c6a9151d9111 --- /dev/null +++ b/pkgs/development/python-modules/attrdict/default.nix @@ -0,0 +1,19 @@ +{ stdenv, buildPythonPackage, fetchPypi, coverage, nose, six }: + +buildPythonPackage rec { + pname = "attrdict"; + version = "2.0.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1lrailzxy40dx6sn1hbpnpqfbg7ar75dfj41kx0480wyh39vdbl6"; + }; + + propagatedBuildInputs = [ coverage nose six ]; + + meta = with stdenv.lib; { + description = "A dict with attribute-style access"; + homepage = https://github.com/bcj/AttrDict; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9da99a4b8add..6753c0aaab81 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -564,22 +564,7 @@ in { astroid = callPackage ../development/python-modules/astroid { }; - attrdict = buildPythonPackage (rec { - name = "attrdict-2.0.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/a/attrdict/${name}.tar.gz"; - sha256 = "86aeb6d3809e0344409f8148d7cac9eabce5f0b577c160b5e90d10df3f8d2ad3"; - }; - - propagatedBuildInputs = with self; [ coverage nose six ]; - - meta = { - description = "A dict with attribute-style access"; - homepage = https://github.com/bcj/AttrDict; - license = licenses.mit; - }; - }); + attrdict = callPackage ../development/python-modules/attrdict { }; attrs = callPackage ../development/python-modules/attrs { };