From b038c92b03e85de27593016d2e64d17335126d96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Thu, 5 Apr 2018 22:05:51 +0200 Subject: [PATCH] python.pkgs.uritemplate: move expression --- .../python-modules/uritemplate/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 22 +----------------- 2 files changed, 24 insertions(+), 21 deletions(-) create mode 100644 pkgs/development/python-modules/uritemplate/default.nix diff --git a/pkgs/development/python-modules/uritemplate/default.nix b/pkgs/development/python-modules/uritemplate/default.nix new file mode 100644 index 00000000000..bb358e677e2 --- /dev/null +++ b/pkgs/development/python-modules/uritemplate/default.nix @@ -0,0 +1,23 @@ +{ lib, buildPythonPackage, fetchPypi, simplejson }: + +buildPythonPackage rec { + pname = "uritemplate"; + version = "0.6"; + + src = fetchPypi { + inherit pname version; + sha256 = "1zapwg406vkwsirnzc6mwq9fac4az8brm6d9bp5xpgkyxc5263m3"; + }; + + # No tests in archive + doCheck = false; + + propagatedBuildInputs = [ simplejson ]; + + meta = with lib; { + homepage = https://github.com/uri-templates/uritemplate-py; + description = "Python implementation of URI Template"; + license = licenses.asl20; + maintainers = with maintainers; [ matthiasbeyer ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4b45061fabd..8d8374149a6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -14960,27 +14960,7 @@ in { update_checker = callPackage ../development/python-modules/update_checker {}; - uritemplate = buildPythonPackage rec { - name = "uritemplate-${version}"; - version = "0.6"; - - src = pkgs.fetchurl { - url = "mirror://pypi/u/uritemplate/${name}.tar.gz"; - sha256 = "1zapwg406vkwsirnzc6mwq9fac4az8brm6d9bp5xpgkyxc5263m3"; - }; - - # No tests in archive - doCheck = false; - - propagatedBuildInputs = with self; [ simplejson ]; - - meta = with stdenv.lib; { - homepage = https://github.com/uri-templates/uritemplate-py; - description = "Python implementation of URI Template"; - license = licenses.asl20; - maintainers = with maintainers; [ ]; - }; - }; + uritemplate = callPackage ../development/python-modules/uritemplate { }; uptime = buildPythonPackage rec { name = "uptime-${version}";