mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
Merge pull request #64386 from mogorman/greatfet
greatfet: init at 2019.05.01.dev0
This commit is contained in:
commit
be0fab1022
26
pkgs/development/python-modules/facedancer/default.nix
Normal file
26
pkgs/development/python-modules/facedancer/default.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k, pyusb, pyserial }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "facedancer";
|
||||
version = "2019.3.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1zhwnlfksblgp54njd9gjsrr5ibg12cx1x9xxcqkcdfhn3m2kmm0";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = [ pyusb pyserial ];
|
||||
|
||||
preBuild = ''
|
||||
echo "$version" > VERSION
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "library for emulating usb devices";
|
||||
homepage = https://greatscottgadgets.com/greatfet/;
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ mog ];
|
||||
};
|
||||
}
|
34
pkgs/development/python-modules/greatfet/default.nix
Normal file
34
pkgs/development/python-modules/greatfet/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ lib, fetchFromGitHub, buildPythonPackage, isPy3k, future, pyusb, ipython, pygreat }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "GreatFET";
|
||||
version = "2019.5.1.dev0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "greatscottgadgets";
|
||||
repo = "greatfet";
|
||||
rev = "a927f21d59ccface00635146103a807c1d2b0ad8";
|
||||
sha256 = "054vkx4xkbhxhh5grjbs9kw3pjkv1zapp91ysrqr0c8mg1pc7zxv";
|
||||
};
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
propagatedBuildInputs = [ future pyusb ipython pygreat ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
preBuild = ''
|
||||
cd host
|
||||
echo "$version" > ../VERSION
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Hardware hacking with the greatfet";
|
||||
homepage = https://greatscottgadgets.com/greatfet;
|
||||
license = lib.licenses.bsd3;
|
||||
platforms = lib.platforms.all;
|
||||
maintainers = with lib.maintainers; [ mog ];
|
||||
};
|
||||
}
|
||||
|
||||
|
31
pkgs/development/python-modules/pygreat/default.nix
Normal file
31
pkgs/development/python-modules/pygreat/default.nix
Normal file
@ -0,0 +1,31 @@
|
||||
{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub, future, pyusb }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pygreat";
|
||||
version = "2019.5.1.dev0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "greatscottgadgets";
|
||||
repo = "libgreat";
|
||||
rev = "14c00b7c8f036f4d467e4b1a324ffa3566b126fa";
|
||||
sha256 = "1h0z83k1k4z8j36z936h61l8j3cjr3wsxr86k91v5c5h93g9dkqh";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ future pyusb ];
|
||||
|
||||
disabled = !isPy3k;
|
||||
|
||||
preBuild = ''
|
||||
cd host
|
||||
substituteInPlace setup.py --replace "'backports.functools_lru_cache'" ""
|
||||
substituteInPlace pygreat/comms.py --replace "from backports.functools_lru_cache import lru_cache as memoize_with_lru_cache" "from functools import lru_cache as memoize_with_lru_cache"
|
||||
echo "$version" > ../VERSION
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python library for talking with libGreat devices";
|
||||
homepage = https://greatscottgadgets.com/greatfet/;
|
||||
license = with licenses; [ bsd3 ];
|
||||
};
|
||||
|
||||
}
|
@ -550,6 +550,8 @@ in {
|
||||
|
||||
fasttext = callPackage ../development/python-modules/fasttext { };
|
||||
|
||||
facedancer = callPackage ../development/python-modules/facedancer { };
|
||||
|
||||
favicon = callPackage ../development/python-modules/favicon { };
|
||||
|
||||
fido2 = callPackage ../development/python-modules/fido2 { };
|
||||
@ -2984,6 +2986,10 @@ in {
|
||||
|
||||
grappelli_safe = callPackage ../development/python-modules/grappelli_safe { };
|
||||
|
||||
greatfet = callPackage ../development/python-modules/greatfet { };
|
||||
|
||||
pygreat = callPackage ../development/python-modules/pygreat { };
|
||||
|
||||
pytorch = callPackage ../development/python-modules/pytorch {
|
||||
cudaSupport = pkgs.config.cudaSupport or false;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user