Refactor Nix package definition for tuh-activity-logger to utilize buildPythonApplication, streamline dependencies, and include additional packages such as beautifulsoup4, requests, and matplotlib.
This commit is contained in:
parent
cd60c3ad69
commit
df61132974
@ -1,23 +1,27 @@
|
||||
{ python3Packages, sqlite, ... }:
|
||||
{
|
||||
buildPythonApplication,
|
||||
setuptools,
|
||||
beautifulsoup4,
|
||||
requests,
|
||||
matplotlib,
|
||||
sqlite,
|
||||
...
|
||||
}:
|
||||
let
|
||||
pname = "tuh-activity-logger";
|
||||
version = "1.0";
|
||||
in
|
||||
python3Packages.buildPythonApplication {
|
||||
buildPythonApplication {
|
||||
inherit pname version;
|
||||
src = builtins.path {
|
||||
path = ../src/tuhmayto/.;
|
||||
name = "${pname}-${version}";
|
||||
};
|
||||
build-system = [ python3Packages.setuptools ];
|
||||
build-system = [ setuptools ];
|
||||
dependencies = [
|
||||
sqlite
|
||||
]
|
||||
++ builtins.attrValues {
|
||||
inherit (python3Packages)
|
||||
beautifulsoup4
|
||||
requests
|
||||
matplotlib
|
||||
;
|
||||
};
|
||||
];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user