Merge pull request #22713 from richardlarocque/antfs-cli
antfs-cli and openant: init at unstable-2017-02-11
This commit is contained in:
commit
9d48d3774e
21
pkgs/applications/misc/antfs-cli/default.nix
Normal file
21
pkgs/applications/misc/antfs-cli/default.nix
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{ stdenv, fetchFromGitHub, pythonPackages }:
|
||||||
|
|
||||||
|
pythonPackages.buildPythonApplication rec {
|
||||||
|
name = "antfs-cli-unstable-2017-02-11";
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "https://github.com/Tigge/antfs-cli";
|
||||||
|
description = "Extracts FIT files from ANT-FS based sport watches";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "Tigge";
|
||||||
|
repo = "antfs-cli";
|
||||||
|
rev = "85a6cc6fe6fc0ec38399f5aa30fb39177c565b52";
|
||||||
|
sha256 = "0v8y64kldfbs809j1g9d75dd1vxq7mfxnp4b45pz8anpxhjf64fy";
|
||||||
|
};
|
||||||
|
|
||||||
|
propagatedBuildInputs = [ pythonPackages.openant ];
|
||||||
|
}
|
@ -12500,6 +12500,8 @@ with pkgs;
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
antfs-cli = callPackage ../applications/misc/antfs-cli {};
|
||||||
|
|
||||||
antimony = qt5.callPackage ../applications/graphics/antimony {};
|
antimony = qt5.callPackage ../applications/graphics/antimony {};
|
||||||
|
|
||||||
antiword = callPackage ../applications/office/antiword {};
|
antiword = callPackage ../applications/office/antiword {};
|
||||||
|
@ -4683,6 +4683,37 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
openant = buildPythonPackage rec {
|
||||||
|
name = "openant-unstable-2017-02-11";
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
|
homepage = "https://github.com/Tigge/openant";
|
||||||
|
description = "ANT and ANT-FS Python Library";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
};
|
||||||
|
|
||||||
|
src = pkgs.fetchFromGitHub {
|
||||||
|
owner = "Tigge";
|
||||||
|
repo = "openant";
|
||||||
|
rev = "ed89281e37f65d768641e87356cef38877952397";
|
||||||
|
sha256 = "1g81l9arqdy09ijswn3sp4d6i3z18d44lzyb78bwnvdb14q22k19";
|
||||||
|
};
|
||||||
|
|
||||||
|
# Removes some setup.py hacks intended to install udev rules.
|
||||||
|
# We do the job ourselves in postInstall below.
|
||||||
|
postPatch = ''
|
||||||
|
sed -i -e '/cmdclass=.*/d' setup.py
|
||||||
|
'';
|
||||||
|
|
||||||
|
postInstall = ''
|
||||||
|
install -dm755 "$out/etc/udev/rules.d"
|
||||||
|
install -m644 resources/ant-usb-sticks.rules "$out/etc/udev/rules.d/99-ant-usb-sticks.rules"
|
||||||
|
'';
|
||||||
|
|
||||||
|
propagatedBuildInputs = with self; [ pyusb ];
|
||||||
|
};
|
||||||
|
|
||||||
opencv = pkgs.opencv.override {
|
opencv = pkgs.opencv.override {
|
||||||
enablePython = true;
|
enablePython = true;
|
||||||
pythonPackages = self;
|
pythonPackages = self;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user