nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 49 lines 900 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pyusb, 6 tqdm, 7 libusb1, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "pyfwup"; 13 version = "0.5.3"; 14 15 pyproject = true; 16 17 src = fetchFromGitHub { 18 owner = "greatscottgadgets"; 19 repo = "pyfwup"; 20 tag = version; 21 hash = "sha256-Dy/mO5dWvuuzas9XPY8ibZCuPUP8NGaUVt0j2cvhZrM="; 22 }; 23 24 postPatch = '' 25 substituteInPlace pyproject.toml \ 26 --replace-fail '"setuptools-git-versioning<2"' "" \ 27 --replace-fail 'dynamic = ["version"]' 'version = "${version}"' 28 ''; 29 30 dependencies = [ 31 pyusb 32 tqdm 33 libusb1 34 ]; 35 36 build-system = [ setuptools ]; 37 38 pythonImportsCheck = [ 39 "fwup" 40 "fwup_utils" 41 ]; 42 43 meta = { 44 description = "Python FirmWare UPgrader"; 45 homepage = "https://github.com/greatscottgadgets/pyfwup"; 46 license = lib.licenses.bsd3; 47 maintainers = [ lib.maintainers.msanft ]; 48 }; 49}