From 1a5ad29c48223cb9796f72b16440bcc08f0d101c Mon Sep 17 00:00:00 2001 From: Elis Hirwing Date: Tue, 3 Apr 2018 12:39:57 +0200 Subject: [PATCH] pythonPackages.pytest-server-fixtures: Move to own file --- .../pytest-server-fixtures/default.nix | 26 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 25 +----------------- 2 files changed, 27 insertions(+), 24 deletions(-) create mode 100644 pkgs/development/python-modules/pytest-server-fixtures/default.nix diff --git a/pkgs/development/python-modules/pytest-server-fixtures/default.nix b/pkgs/development/python-modules/pytest-server-fixtures/default.nix new file mode 100644 index 000000000000..a6e5f45c5d99 --- /dev/null +++ b/pkgs/development/python-modules/pytest-server-fixtures/default.nix @@ -0,0 +1,26 @@ +{ stdenv, buildPythonPackage, fetchPypi +, pytest, setuptools-git, pytest-shutil, pytest-fixture-config, psutil +, requests}: + +buildPythonPackage rec { + pname = "pytest-server-fixtures"; + version = "1.1.0"; + + src = fetchPypi { + inherit pname version; + sha256 = "1gs9qimcn8q6xi9d6i5624l0dziwvn6nj2rda07fg15g1cq66s8l"; + }; + + buildInputs = [ pytest ]; + propagatedBuildInputs = [ setuptools-git pytest-shutil pytest-fixture-config psutil requests ]; + + # RuntimeError: Unable to find a free server number to start Xvfb + doCheck = false; + + meta = with stdenv.lib; { + description = "Extensible server fixures for py.test"; + homepage = "https://github.com/manahl/pytest-plugins"; + license = licenses.mit; + maintainers = with maintainers; [ nand0p ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1082faa838de..0b99b69b15d2 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1950,30 +1950,7 @@ in { pytestquickcheck = callPackage ../development/python-modules/pytest-quickcheck { }; - pytest-server-fixtures = buildPythonPackage rec { - name = "${pname}-${version}"; - pname = "pytest-server-fixtures"; - version = "1.1.0"; - - buildInputs = with self; [ pytest ]; - propagatedBuildInputs = with self; [ setuptools-git pytest-shutil pytest-fixture-config psutil requests ]; - - meta = { - description = "Extensible server fixures for py.test"; - homepage = "https://github.com/manahl/pytest-plugins"; - license = licenses.mit; - maintainers = with maintainers; [ nand0p ]; - platforms = platforms.all; - }; - - doCheck = false; - # RuntimeError: Unable to find a free server number to start Xvfb - - src = pkgs.fetchurl { - url = "mirror://pypi/p/${pname}/${name}.tar.gz"; - sha256 = "1gs9qimcn8q6xi9d6i5624l0dziwvn6nj2rda07fg15g1cq66s8l"; - }; - }; + pytest-server-fixtures = callPackage ../development/python-modules/pytest-server-fixtures { }; pytest-shutil = buildPythonPackage rec { name = "pytest-shutil-${version}";