forked from BattleCh1cken/pros-cli-nix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpros-cli.nix
77 lines (71 loc) · 1.57 KB
/
pros-cli.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
{ lib
, callPackage
, buildPythonApplication
, fetchFromGitHub
, click
, rich-click
, pyserial
, cachetools
, requests
, requests-futures
, tabulate
, jsonpickle
, semantic-version
, colorama
, pyzmq
, sentry-sdk
, pypng
, setuptools
, installShellFiles
}:
buildPythonApplication rec {
pname = "pros-cli";
version = "a075f9455ef9f738fc806f963ec678238998348a";
src = fetchFromGitHub {
owner = "purduesigbots";
repo = "pros-cli";
rev = "${version}";
hash = "sha256-cEtF2W7T2uit4SWvQe/bFHyrzyP/rAEyKHcDlFjZGik=";
};
doCheck = false;
patches = [ ./version.patch ];
# Relax some dependencies
postPatch =
''
substituteInPlace requirements.txt \
--replace 'scan-build==2.0.13' 'scan-build' \
--replace 'pyinstaller' ' ' \
--replace 'pypng==0.0.20' 'pypng' \
'';
propagatedBuildInputs =
let
cobs = callPackage ./cobs.nix { };
scan-build = callPackage ./scan-build.nix { };
observable = callPackage ./observable.nix { };
in
[
click # >=6,<7
rich-click
pyserial
cachetools
requests
requests-futures
tabulate
jsonpickle
semantic-version
colorama
pyzmq
cobs
scan-build # ==2.0.13
sentry-sdk
observable
pypng # ==0.0.20
setuptools
];
meta = with lib; {
description = "Command Line Interface for managing PROS projects. Works with V5 and the Cortex ";
homepage = "https://github.com/purduesigbots/pros-cli";
license = licenses.mpl20;
maintainers = with maintainers; [ BattleCh1cken ];
};
}