tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python3Packages.blinkstick: 1.1.8 -> 1.2.0
Fabian Affolter
5 years ago
a4e8d7e5
f0d8828b
+18
-14
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
blinkstick
default.nix
+18
-14
pkgs/development/python-modules/blinkstick/default.nix
···
1
1
-
{ lib, buildPythonPackage, fetchPypi, fetchpatch, pyusb }:
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchPypi
4
4
+
, pyusb
5
5
+
}:
2
6
3
7
buildPythonPackage rec {
4
8
pname = "BlinkStick";
5
5
-
version = "1.1.8";
9
9
+
version = "1.2.0";
6
10
7
11
src = fetchPypi {
8
12
inherit pname version;
9
9
-
sha256 = "3edf4b83a3fa1a7bd953b452b76542d54285ff6f1145b6e19f9b5438120fa408";
13
13
+
sha256 = "0rdk3i81s6byw23za0bxvkh7sj5l16qxxgc2c53qjg3klc24wcm9";
10
14
};
11
15
12
12
-
patches = [
13
13
-
(fetchpatch {
14
14
-
url = "https://github.com/arvydas/blinkstick-python/commit/a9227d0.patch";
15
15
-
sha256 = "1mcmxlnkbfxwp84qz32l5rlc7r9anh9yhnqaj1y8rny5s13jb01f";
16
16
-
})
17
17
-
(fetchpatch {
18
18
-
url = "https://github.com/arvydas/blinkstick-python/pull/54.patch";
19
19
-
sha256 = "1gjq6xbai794bbdyrv82i96l1a7qkwvlhzd6sa937dy5ivv6s6hl";
20
20
-
})
21
21
-
];
16
16
+
# Upstream fix https://github.com/arvydas/blinkstick-python/pull/54
17
17
+
# https://github.com/arvydas/blinkstick-python/pull/54/commits/b9bee2cd72f799f1210e5d9e13207f93bbc2d244.patch
18
18
+
# has line ending issues after 1.2.0
19
19
+
postPatch = ''
20
20
+
substituteInPlace setup.py --replace "pyusb==1.0.0" "pyusb>=1.0.0"
21
21
+
'';
22
22
23
23
propagatedBuildInputs = [ pyusb ];
24
24
25
25
+
# Project has no tests
26
26
+
doCheck = false;
27
27
+
pythonImportsCheck = [ "blinkstick" ];
28
28
+
25
29
meta = with lib; {
26
30
description = "Python package to control BlinkStick USB devices";
27
27
-
homepage = "https://pypi.python.org/pypi/BlinkStick/";
31
31
+
homepage = "https://github.com/arvydas/blinkstick-python";
28
32
license = licenses.bsd3;
29
33
maintainers = with maintainers; [ np ];
30
34
};