Merge pull request #25296 from mguentner/add_td_watson

watson: init at 1.4.0
This commit is contained in:
Frederik Rietdijk 2017-05-06 11:16:04 +02:00 committed by GitHub
commit 5bf1e967fd
4 changed files with 57 additions and 5 deletions

View File

@ -0,0 +1,27 @@
{ stdenv, pythonPackages }:
pythonPackages.buildPythonApplication rec {
pname = "td-watson";
name = "${pname}-${version}";
version = "1.4.0";
src = pythonPackages.fetchPypi {
inherit version pname;
sha256 = "1py0g4990jmvq0dn7jasda7f10kzr41bix46hnbyc1rshjzc17hq";
};
# uses tox, test invocation fails
doCheck = true;
checkPhase = ''
py.test -vs tests
'';
checkInputs = with pythonPackages; [ py pytest pytest-datafiles mock pytest-mock pytestrunner ];
propagatedBuildInputs = with pythonPackages; [ requests2 click arrow ];
meta = with stdenv.lib; {
homepage = https://tailordev.github.io/Watson/;
description = "A wonderful CLI to track your time!";
license = licenses.mit;
maintainers = with maintainers; [ mguentner ] ;
};
}

View File

@ -0,0 +1,19 @@
{ stdenv, buildPythonPackage, fetchPypi, py, pytest }:
buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pytest-datafiles";
version = "1.0";
src = fetchPypi {
inherit version pname;
sha256 = "1w5435b5pimk6479ml53lmld3qbag7awcg4gl3ljdywc1v096r5v";
};
buildInputs = [ py pytest ];
meta = with stdenv.lib; {
license = licenses.mit;
website = https://pypi.python.org/pypi/pytest-catchlog/;
description = "py.test plugin to create a 'tmpdir' containing predefined files/directories.";
};
}

View File

@ -16199,6 +16199,10 @@ with pkgs;
imlib2 = imlib2-nox;
};
watson = callPackage ../applications/office/watson {
pythonPackages = python3Packages;
};
way-cooler = callPackage ../applications/window-managers/way-cooler {};
wayv = callPackage ../tools/X11/wayv {};

View File

@ -5076,6 +5076,8 @@ in {
};
};
pytest-datafiles = callPackage ../development/python-modules/pytest-datafiles { };
pytest-django = callPackage ../development/python-modules/pytest-django { };
pytest-fixture-config = buildPythonPackage rec {
@ -5155,9 +5157,9 @@ in {
pytest-mock = buildPythonPackage rec {
name = "${pname}-${version}";
pname = "pytest-mock";
version = "1.2";
version = "1.6.0";
buildInputs = with self; [ pytest ];
buildInputs = with self; [ pytest setuptools_scm ];
propagatedBuildInputs = with self; [ mock ];
meta = {
@ -5168,9 +5170,9 @@ in {
platforms = platforms.all;
};
src = pkgs.fetchurl {
url = "mirror://pypi/p/${pname}/${name}.zip";
sha256 = "03zxar5drzm7ksqyrwypjaza3cri6wqvpr6iam92djvg6znp32gp";
src = fetchPypi {
inherit pname version;
sha256 = "07qccww4bq9jxlc0fbhlspr13kcsixchsnl8vk4wdiyvsjy7r8c3";
};
};