From c099f8aaa3b9b0921208914212a1a18c5f8989a5 Mon Sep 17 00:00:00 2001 From: Chris Ostrouchov Date: Tue, 16 Oct 2018 14:05:25 -0400 Subject: [PATCH] pythonPackages.kaptan: refactor move to python-modules --- .../python-modules/kaptan/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 20 +------------- 2 files changed, 27 insertions(+), 19 deletions(-) create mode 100644 pkgs/development/python-modules/kaptan/default.nix diff --git a/pkgs/development/python-modules/kaptan/default.nix b/pkgs/development/python-modules/kaptan/default.nix new file mode 100644 index 000000000000..af24471d68de --- /dev/null +++ b/pkgs/development/python-modules/kaptan/default.nix @@ -0,0 +1,26 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, pyyaml +}: + +buildPythonPackage rec { + pname = "kaptan"; + version = "0.5.8"; + + src = fetchPypi { + inherit pname version; + sha256 = "1b8r86yyvdvyxd6f10mhkl6cr2jhxm80jjqr4zch96w9hs9rh5vq"; + }; + + propagatedBuildInputs = [ pyyaml ]; + + meta = with stdenv.lib; { + description = "Configuration manager for python applications"; + homepage = https://emre.github.io/kaptan/; + license = licenses.bsd3; + platforms = platforms.linux; + maintainers = with maintainers; [ jgeerds ]; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ee1cf9b69118..c916473b8e39 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2324,25 +2324,7 @@ in { pillowfight = callPackage ../development/python-modules/pillowfight { }; - kaptan = buildPythonPackage rec { - name = "kaptan-${version}"; - version = "0.5.8"; - - src = pkgs.fetchurl { - url = "mirror://pypi/k/kaptan/${name}.tar.gz"; - sha256 = "1b8r86yyvdvyxd6f10mhkl6cr2jhxm80jjqr4zch96w9hs9rh5vq"; - }; - - propagatedBuildInputs = with self; [ pyyaml ]; - - meta = with stdenv.lib; { - description = "Configuration manager for python applications"; - homepage = https://emre.github.io/kaptan/; - license = licenses.bsd3; - platforms = platforms.linux; - maintainers = with maintainers; [ jgeerds ]; - }; - }; + kaptan = callPackage ../development/python-modules/kaptan { }; keepalive = buildPythonPackage rec { name = "keepalive-${version}";