From 202f7192e32eebac673a426134209d41c01cd3a0 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Mon, 15 Oct 2018 23:40:42 -0400 Subject: [PATCH] pythonPackages.itsdangerous: refactor move to python-modules --- .../python-modules/itsdangerous/default.nix | 21 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 14 +------------ 2 files changed, 22 insertions(+), 13 deletions(-) create mode 100644 pkgs/development/python-modules/itsdangerous/default.nix diff --git a/pkgs/development/python-modules/itsdangerous/default.nix b/pkgs/development/python-modules/itsdangerous/default.nix new file mode 100644 index 000000000000..385708f436ec --- /dev/null +++ b/pkgs/development/python-modules/itsdangerous/default.nix @@ -0,0 +1,21 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "itsdangerous"; + version = "0.24"; + + src = fetchPypi { + inherit pname version; + sha256 = "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb"; + }; + + meta = with stdenv.lib; { + description = "Helpers to pass trusted data to untrusted environments and back"; + homepage = "https://pypi.python.org/pypi/itsdangerous/"; + license = licenses.bsd0; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index a698970d44d5..3170da02b3f4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1898,19 +1898,7 @@ in { ipfsapi = callPackage ../development/python-modules/ipfsapi { }; - itsdangerous = buildPythonPackage rec { - name = "itsdangerous-0.24"; - - src = pkgs.fetchurl { - url = "mirror://pypi/i/itsdangerous/${name}.tar.gz"; - sha256 = "06856q6x675ly542ig0plbqcyab6ksfzijlyf1hzhgg3sgwgrcyb"; - }; - - meta = { - description = "Helpers to pass trusted data to untrusted environments and back"; - homepage = "https://pypi.python.org/pypi/itsdangerous/"; - }; - }; + itsdangerous = callPackage ../development/python-modules/itsdangerous { }; iniparse = buildPythonPackage rec {