nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, stdenv
3, fetchPypi
4, buildPythonPackage
5, isPy3k
6, mock
7, pytestCheckHook
8, cloudpickle
9, pyinotify
10, macfsevents
11, toml
12}:
13
14buildPythonPackage rec {
15 pname = "doit";
16 version = "0.35.0";
17
18 disabled = !isPy3k;
19
20 src = fetchPypi {
21 inherit pname version;
22 sha256 = "sha256-cVoyLIdMTLhiOU46DWn/MlcrUln1cDb7/cEFPEwB00g=";
23 };
24
25 propagatedBuildInputs = [
26 cloudpickle
27 toml
28 ] ++ lib.optional stdenv.isLinux pyinotify
29 ++ lib.optional stdenv.isDarwin macfsevents;
30
31 # hangs on darwin
32 doCheck = !stdenv.isDarwin;
33
34 checkInputs = [ mock pytestCheckHook ];
35
36 disabledTests = [
37 # depends on doit-py, which has a circular dependency on doit
38 "test___main__.py"
39 ];
40
41 meta = with lib; {
42 homepage = "https://pydoit.org/";
43 description = "A task management & automation tool";
44 license = licenses.mit;
45 longDescription = ''
46 doit is a modern open-source build-tool written in python
47 designed to be simple to use and flexible to deal with complex
48 work-flows. It is specially suitable for building and managing
49 custom work-flows where there is no out-of-the-box solution
50 available.
51 '';
52 maintainers = with maintainers; [ pSub ];
53 };
54}