diff --git a/pkgs/development/python-modules/sure/default.nix b/pkgs/development/python-modules/sure/default.nix new file mode 100644 index 000000000000..31ec9c12b002 --- /dev/null +++ b/pkgs/development/python-modules/sure/default.nix @@ -0,0 +1,32 @@ +{ stdenv +, buildPythonPackage +, fetchPypi +, nose +, six +, mock +, pkgs +, isPyPy +}: + +buildPythonPackage rec { + pname = "sure"; + version = "1.2.24"; + disabled = isPyPy; + + src = fetchPypi { + inherit pname version; + sha256 = "1lyjq0rvkbv585dppjdq90lbkm6gyvag3wgrggjzyh7cpyh5c12w"; + }; + + LC_ALL="en_US.UTF-8"; + + buildInputs = [ nose pkgs.glibcLocales ]; + propagatedBuildInputs = [ six mock ]; + + meta = with stdenv.lib; { + description = "Utility belt for automated testing"; + homepage = https://falcao.it/sure/; + license = licenses.gpl3Plus; + }; + +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2e4bee579b53..313aa0d50ad4 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3920,29 +3920,7 @@ in { subunit = callPackage ../development/python-modules/subunit { }; - sure = buildPythonPackage rec { - name = "sure-${version}"; - version = "1.2.24"; - - LC_ALL="en_US.UTF-8"; - - disabled = isPyPy; - - src = pkgs.fetchurl { - url = "mirror://pypi/s/sure/${name}.tar.gz"; - sha256 = "1lyjq0rvkbv585dppjdq90lbkm6gyvag3wgrggjzyh7cpyh5c12w"; - }; - - buildInputs = with self; [ nose pkgs.glibcLocales ]; - - propagatedBuildInputs = with self; [ six mock ]; - - meta = { - description = "Utility belt for automated testing"; - homepage = https://falcao.it/sure/; - license = licenses.gpl3Plus; - }; - }; + sure = callPackage ../development/python-modules/sure { }; structlog = callPackage ../development/python-modules/structlog { };