From 4e29f175492e1719e50a3db4d4fa4d8489826598 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 10:36:04 -0400 Subject: [PATCH] pythonPackages.peppercorn: refactor move to python-modules --- .../python-modules/peppercorn/default.nix | 22 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 14 +----------- 2 files changed, 23 insertions(+), 13 deletions(-) create mode 100644 pkgs/development/python-modules/peppercorn/default.nix diff --git a/pkgs/development/python-modules/peppercorn/default.nix b/pkgs/development/python-modules/peppercorn/default.nix new file mode 100644 index 000000000000..5a07fc217a95 --- /dev/null +++ b/pkgs/development/python-modules/peppercorn/default.nix @@ -0,0 +1,22 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +}: + +buildPythonPackage rec { + pname = "peppercorn"; + version = "0.5"; + + src = fetchPypi { + inherit pname version; + sha256 = "921cba5d51fa211e6da0fbd2120b9a98d663422a80f5bb669ad81ffb0909774b"; + }; + + meta = with stdenv.lib; { + description = "A library for converting a token stream into a data structure for use in web form posts"; + homepage = https://docs.pylonsproject.org/projects/peppercorn/en/latest/; + maintainers = with maintainers; [ garbas domenkozar ]; + platforms = platforms.all; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fb4ad725a97f..ba74e4708660 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2023,19 +2023,7 @@ in { path-and-address = callPackage ../development/python-modules/path-and-address { }; - peppercorn = buildPythonPackage rec { - name = "peppercorn-0.5"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/peppercorn/${name}.tar.gz"; - sha256 = "921cba5d51fa211e6da0fbd2120b9a98d663422a80f5bb669ad81ffb0909774b"; - }; - - meta = { - maintainers = with maintainers; [ garbas domenkozar ]; - platforms = platforms.all; - }; - }; + peppercorn = callPackage ../development/python-modules/peppercorn { }; pex = buildPythonPackage rec { name = "pex-${version}";