From c2e7a20f34e9af65aa61bbb30f5e4fbd18fb8025 Mon Sep 17 00:00:00 2001 From: Christopher Ostrouchov Date: Wed, 8 Aug 2018 04:53:28 -0400 Subject: [PATCH] pythonPackages.docrep: init at 0.2.3 (#44665) --- .../python-modules/docrep/default.nix | 33 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/development/python-modules/docrep/default.nix diff --git a/pkgs/development/python-modules/docrep/default.nix b/pkgs/development/python-modules/docrep/default.nix new file mode 100644 index 000000000000..e2bde245a678 --- /dev/null +++ b/pkgs/development/python-modules/docrep/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytest +, six +}: + +buildPythonPackage rec { + pname = "docrep"; + version = "0.2.3"; + + src = fetchPypi { + inherit pname version; + sha256 = "7d195b6dfcf4efe5cb65402b6c6f6d7e6db77ce255887fae32c9a8288a022659"; + }; + + checkInputs = [ pytest ]; + propagatedBuildInputs = [ six ]; + + checkPhase = '' + py.test + ''; + + # tests not packaged with PyPi download + doCheck = false; + + meta = { + description = "Python package for docstring repetition"; + homepage = https://github.com/Chilipp/docrep; + license = lib.licenses.gpl2; + maintainers = with lib.maintainers; [ costrouc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index af1895d9d147..1dbab2d1d803 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -250,6 +250,8 @@ in { diff_cover = callPackage ../development/python-modules/diff_cover { }; + docrep = callPackage ../development/python-modules/docrep { }; + emcee = callPackage ../development/python-modules/emcee { }; email_validator = callPackage ../development/python-modules/email-validator { };