init flake

This commit is contained in:
Robin Appelman 2024-07-08 20:28:15 +02:00
commit a6d41bbaa3
17 changed files with 623 additions and 0 deletions

45
pkgs/python/pyfwup.nix Normal file
View 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;
};
}