diff --git a/pkgs/development/python-modules/fixtures/default.nix b/pkgs/development/python-modules/fixtures/default.nix new file mode 100644 index 000000000000..c13eec1baf03 --- /dev/null +++ b/pkgs/development/python-modules/fixtures/default.nix @@ -0,0 +1,31 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pbr +, testtools +, mock +, python +}: + +buildPythonPackage rec { + pname = "fixtures"; + version = "1.4.0"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y"; + }; + + propagatedBuildInputs = [ pbr testtools mock ]; + + checkPhase = '' + ${python.interpreter} -m testtools.run fixtures.test_suite + ''; + + meta = { + description = "Reusable state for writing clean tests and more"; + homepage = "https://pypi.python.org/pypi/fixtures"; + license = lib.licenses.asl20; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1069d60c6882..6312fb25f4b3 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -15757,22 +15757,7 @@ in { pbr = callPackage ../development/python-modules/pbr { }; - fixtures = buildPythonPackage rec { - name = "fixtures-1.4.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/f/fixtures/${name}.tar.gz"; - sha256 = "0djxvdwm8s60dbfn7bhf40x6g818p3b3mlwijm1c3bqg7msn271y"; - }; - - buildInputs = with self; [ pbr testtools mock ]; - - meta = { - description = "Reusable state for writing clean tests and more"; - homepage = "https://pypi.python.org/pypi/fixtures"; - license = licenses.asl20; - }; - }; + fixtures = callPackage ../development/python-modules/fixtures { }; pelican = callPackage ../development/python-modules/pelican { inherit (pkgs) glibcLocales pandoc git;