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
|
let
|
||||||
pname = "tuh-activity-logger";
|
pname = "tuh-activity-logger";
|
||||||
version = "1.0";
|
version = "1.0";
|
||||||
in
|
in
|
||||||
python3Packages.buildPythonApplication {
|
buildPythonApplication {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
src = builtins.path {
|
src = builtins.path {
|
||||||
path = ../src/tuhmayto/.;
|
path = ../src/tuhmayto/.;
|
||||||
name = "${pname}-${version}";
|
name = "${pname}-${version}";
|
||||||
};
|
};
|
||||||
build-system = [ python3Packages.setuptools ];
|
build-system = [ setuptools ];
|
||||||
dependencies = [
|
dependencies = [
|
||||||
sqlite
|
sqlite
|
||||||
]
|
beautifulsoup4
|
||||||
++ builtins.attrValues {
|
requests
|
||||||
inherit (python3Packages)
|
matplotlib
|
||||||
beautifulsoup4
|
];
|
||||||
requests
|
|
||||||
matplotlib
|
|
||||||
;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user