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}";