Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,32 +1,28 @@
{
lib,
fetchFromGitHub,
python3,
...
}@args:
}:

python3.pkgs.buildPythonApplication rec {
python3.pkgs.buildPythonApplication {
pname = "sdwire-cli";
version = "0.2.4-dev";
version = "0.3.1";
pyproject = true;

disabled = python3.pkgs.pythonOlder "3.10";
src = fetchFromGitHub {
owner = "badger-embedded";
repo = pname;
rev = "main";
hash = "sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=";
};
src = ./.;

nativeBuildInputs = with python3.pkgs; [
poetry-core
pythonRelaxDepsHook
];

pythonRelaxDeps = [ "pyftdi" ];

propagatedBuildInputs = with python3.pkgs; [
click
pyusb
pyftdi
pyudev
];

pythonImportsCheck = [ "sdwire" ];
Expand All @@ -35,6 +31,7 @@ python3.pkgs.buildPythonApplication rec {
description = "CLI for Badgerd SDWire Devices";
homepage = "https://github.com/Badger-Embedded/sdwire-cli";
license = licenses.gpl3;
mainProgram = "sdwire";
maintainers = with maintainers; [ talhaHavadar ];
};
}