mirror of
https://github.com/icewind1991/cynthion-flake.git
synced 2026-06-04 06:44:06 +02:00
init flake
This commit is contained in:
commit
a6d41bbaa3
17 changed files with 623 additions and 0 deletions
45
pkgs/python/pyfwup.nix
Normal file
45
pkgs/python/pyfwup.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
buildPythonPackage,
|
||||
python3Packages,
|
||||
pyusb,
|
||||
tqdm,
|
||||
setuptools,
|
||||
setuptools-git-versioning,
|
||||
}: let
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "pyfwup";
|
||||
version = "0.4.0";
|
||||
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "greatscottgadgets";
|
||||
repo = "pyfwup";
|
||||
rev = "0.4.0";
|
||||
hash = "sha256-JSaAEGobdLqpSj9yvKrAsXfdkHpXSCcuGYRxz2QJqck=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
setuptools-git-versioning
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pyusb
|
||||
tqdm
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail 'dynamic = ["version"]' 'version = "${version}"'
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "python library providing utilities, data structures, constants, parsers, and tools for working with USB data";
|
||||
homepage = "https://github.com/greatscottgadgets/python-usb-protocol";
|
||||
license = lib.licenses.bsd3;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue