From a919c28d0ab0c6ba7b5d6e47ff07f782029569ee Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Tue, 3 Apr 2018 14:32:37 +0200 Subject: [PATCH] pythonPackages.dockerpty: Move to own file --- .../python-modules/dockerpty/default.nix | 19 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 17 +---------------- 2 files changed, 20 insertions(+), 16 deletions(-) create mode 100644 pkgs/development/python-modules/dockerpty/default.nix diff --git a/pkgs/development/python-modules/dockerpty/default.nix b/pkgs/development/python-modules/dockerpty/default.nix new file mode 100644 index 000000000000..f7a64481c663 --- /dev/null +++ b/pkgs/development/python-modules/dockerpty/default.nix @@ -0,0 +1,19 @@ +{ stdenv, buildPythonPackage, fetchPypi, six }: + +buildPythonPackage rec { + pname = "dockerpty"; + version = "0.4.1"; + + src = fetchPypi { + inherit pname version; + sha256 = "1kjn64wx23jmr8dcc6g7bwlmrhfmxr77gh6iphqsl39sayfxdab9"; + }; + + propagatedBuildInputs = [ six ]; + + meta = with stdenv.lib; { + description = "Functionality needed to operate the pseudo-tty (PTY) allocated to a docker container"; + homepage = https://github.com/d11wtq/dockerpty; + license = licenses.asl20; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 5ecbea55122b..fa521895ff0d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2132,22 +2132,7 @@ in { docker = callPackage ../development/python-modules/docker {}; - dockerpty = buildPythonPackage rec { - name = "dockerpty-0.4.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/d/dockerpty/${name}.tar.gz"; - sha256 = "1kjn64wx23jmr8dcc6g7bwlmrhfmxr77gh6iphqsl39sayfxdab9"; - }; - - propagatedBuildInputs = with self; [ six ]; - - meta = { - description = "Functionality needed to operate the pseudo-tty (PTY) allocated to a docker container"; - homepage = https://github.com/d11wtq/dockerpty; - license = licenses.asl20; - }; - }; + dockerpty = callPackage ../development/python-modules/dockerpty {}; docker_pycreds = buildPythonPackage rec { name = "docker-pycreds-${version}";