From 9d1e203501898868c9e588fc8e567ac902564f47 Mon Sep 17 00:00:00 2001 From: Lancelot SIX Date: Tue, 31 Jan 2017 22:19:01 +0100 Subject: [PATCH] pythonPackages.pytest-pep257: 0.0.1 -> 0.0.5 --- .../python-modules/pytest-pep257.nix | 19 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 19 +------------------ 2 files changed, 20 insertions(+), 18 deletions(-) create mode 100644 pkgs/development/python-modules/pytest-pep257.nix diff --git a/pkgs/development/python-modules/pytest-pep257.nix b/pkgs/development/python-modules/pytest-pep257.nix new file mode 100644 index 00000000000..7ce63ebc7a6 --- /dev/null +++ b/pkgs/development/python-modules/pytest-pep257.nix @@ -0,0 +1,19 @@ +{ stdenv, buildPythonPackage, fetchurl, pytest, pep257 }: +buildPythonPackage rec { + name = "pytest-pep257-${version}"; + version = "0.0.5"; + + src = fetchurl { + url = "mirror://pypi/p/pytest-pep257/${name}.tar.gz"; + sha256 = "082v3d5k4331x53za51kl8zxsndsw1pcyf1xdfpb2gjdjrhixb8w"; + }; + + buildInputs = [ pytest ]; + propagatedBuildInputs = [ pep257 ]; + + meta = with stdenv.lib; { + homepage = https://github.com/anderslime/pytest-pep257; + description = "py.test plugin for PEP257"; + license = licenses.mit; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f25937f4b23..2746e1eb33e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5126,24 +5126,7 @@ in { }; }; - pytestpep257 = buildPythonPackage rec { - name = "pytest-pep257-${version}"; - version = "0.0.1"; - - src = pkgs.fetchurl { - url = "mirror://pypi/p/pytest-pep257/${name}.tar.gz"; - sha256 = "003vdkxpx37n0kjqpwgj3314hwk2jfz3nz58db7xh68bf8xy75lk"; - }; - - buildInputs = with self; [ pytest ]; - propagatedBuildInputs = with self ; [ pep257 ]; - - meta = { - homepage = https://github.com/anderslime/pytest-pep257; - description = "py.test plugin for PEP257"; - license = licenses.mit; - }; - }; + pytest-pep257 = callPackage ../development/python-modules/pytest-pep257.nix { }; pytest-raisesregexp = buildPythonPackage rec { name = "pytest-raisesregexp-${version}";