We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 589e48a commit efa4546Copy full SHA for efa4546
beku.nix
@@ -1,23 +1,26 @@
1
{ python3 }:
2
-
3
-python3.pkgs.buildPythonApplication {
4
- pname = "beku-stackabletech";
5
- version = "0.0.9";
+with python3;
+let
+ manifest = (pkgs.lib.importTOML ./pyproject.toml).project;
+in
6
+pkgs.buildPythonApplication {
7
+ pname = manifest.name;
8
+ version = manifest.version;
9
10
format = "pyproject";
11
12
src = builtins.path {
13
path = ./.;
- name = "beku-stackabletech";
14
+ name = manifest.name;
15
};
16
- nativeBuildInputs = [
- python3.pkgs.setuptools
17
+ nativeBuildInputs = with pkgs; [
18
+ setuptools
19
];
20
- propagatedBuildInputs = [
- python3.pkgs.jinja2
- python3.pkgs.pyyaml
21
+ propagatedBuildInputs = with pkgs; [
22
+ jinja2
23
+ pyyaml
24
25
}
26
0 commit comments