pythonPackges.taskw: refactor move to python-modules
This commit is contained in:
parent
f80a8fe3ec
commit
d3d1bbe3d5
40
pkgs/development/python-modules/taskw/default.nix
Normal file
40
pkgs/development/python-modules/taskw/default.nix
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{ stdenv
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, nose
|
||||||
|
, tox
|
||||||
|
, six
|
||||||
|
, dateutil
|
||||||
|
, pytz
|
||||||
|
, pkgs
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
version = "1.0.3";
|
||||||
|
pname = "taskw";
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1fa7bv5996ppfbryv02lpnlhk5dra63lhlwrb1i4ifqbziqfqh5n";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [ ./use-template-for-taskwarrior-install-path.patch ];
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace taskw/warrior.py \
|
||||||
|
--replace '@@taskwarrior@@' '${pkgs.taskwarrior}'
|
||||||
|
'';
|
||||||
|
|
||||||
|
# https://github.com/ralphbean/taskw/issues/98
|
||||||
|
doCheck = false;
|
||||||
|
|
||||||
|
buildInputs = [ nose pkgs.taskwarrior tox ];
|
||||||
|
propagatedBuildInputs = [ six dateutil pytz ];
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = https://github.com/ralphbean/taskw;
|
||||||
|
description = "Python bindings for your taskwarrior database";
|
||||||
|
license = licenses.gpl3Plus;
|
||||||
|
maintainers = with maintainers; [ pierron ];
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
@ -3939,35 +3939,7 @@ in {
|
|||||||
|
|
||||||
tabulate = callPackage ../development/python-modules/tabulate { };
|
tabulate = callPackage ../development/python-modules/tabulate { };
|
||||||
|
|
||||||
taskw = buildPythonPackage rec {
|
taskw = callPackage ../development/python-modules/taskw { };
|
||||||
version = "1.0.3";
|
|
||||||
name = "taskw-${version}";
|
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
|
||||||
url = "mirror://pypi/t/taskw/${name}.tar.gz";
|
|
||||||
sha256 = "1fa7bv5996ppfbryv02lpnlhk5dra63lhlwrb1i4ifqbziqfqh5n";
|
|
||||||
};
|
|
||||||
|
|
||||||
patches = [ ../development/python-modules/taskw/use-template-for-taskwarrior-install-path.patch ];
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace taskw/warrior.py \
|
|
||||||
--replace '@@taskwarrior@@' '${pkgs.taskwarrior}'
|
|
||||||
'';
|
|
||||||
|
|
||||||
# https://github.com/ralphbean/taskw/issues/98
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
buildInputs = with self; [ nose pkgs.taskwarrior tox ];
|
|
||||||
propagatedBuildInputs = with self; [ six dateutil pytz ];
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = https://github.com/ralphbean/taskw;
|
|
||||||
description = "Python bindings for your taskwarrior database";
|
|
||||||
license = licenses.gpl3Plus;
|
|
||||||
platforms = platforms.all;
|
|
||||||
maintainers = with maintainers; [ pierron ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
tempita = callPackage ../development/python-modules/tempita { };
|
tempita = callPackage ../development/python-modules/tempita { };
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user