From 87ce1e73a5e032b1b6874266fb4086f9809a97b9 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 26 Apr 2017 19:35:22 +0200 Subject: [PATCH] pythonPackages.coveralls: init at 1.1 --- .../python-modules/coveralls/default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/coveralls/default.nix diff --git a/pkgs/development/python-modules/coveralls/default.nix b/pkgs/development/python-modules/coveralls/default.nix new file mode 100644 index 000000000000..d2c621de43cf --- /dev/null +++ b/pkgs/development/python-modules/coveralls/default.nix @@ -0,0 +1,35 @@ +{ buildPythonPackage +, lib +, fetchurl +, pythonPackages +}: + +let + pname = "coveralls"; + version = "1.1"; +in buildPythonPackage rec { + name = "${pname}-${version}"; + + src = fetchurl { + url = "mirror://pypi/${builtins.substring 0 1 pname}/${pname}/${name}.tar.gz"; + sha256 = "0238hgdwbvriqxrj22zwh0rbxnhh9c6hh75i39ll631vq62h65il"; + }; + + buildInputs = with pythonPackages; [ + coverage + docopt + requests + ]; + propagatedBuildInputs = []; + + # Tests in neither the archive nor the repo + doCheck = false; + + meta = { + description = "py.test plugin to store test expectations and mark tests based on them"; + homepage = https://github.com/gsnedders/pytest-expect; + license = lib.licenses.mit; + }; +} + + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4ab2229ab7e7..c9a3da94894b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4388,6 +4388,8 @@ in { }; }; + coveralls = callPackage ../development/python-modules/coveralls { }; + coverage = buildPythonPackage rec { name = "coverage-4.0.1";