1
0
nixfiles/pkgs/iot-data/default.nix

31 lines
511 B
Nix
Raw Normal View History

2021-06-19 12:51:38 +02:00
{
2022-10-17 23:03:09 +02:00
pkgs,
2021-06-19 12:51:38 +02:00
buildPythonPackage,
flask,
python3,
}:
let
2022-10-17 23:03:09 +02:00
src = pkgs.fetchgit {
2021-06-19 12:51:38 +02:00
url = "https://git.clerie.de/clerie/iot-data.git";
2021-06-20 16:05:59 +02:00
rev = "f60e3a3f89549b4ce88df20888c08a01062d086a";
2022-10-17 23:03:09 +02:00
sha256 = "sha256-D8wusJfYbOkL/Nq6yfYBvhnkBmRcDktORicUpDsIrUE=";
2021-06-19 12:51:38 +02:00
};
pname = "iot-data";
version = "0.0.1";
in buildPythonPackage rec {
inherit src pname version;
propagatedBuildInputs = [
flask
];
postInstall = ''
mkdir -p $out/${python3.sitePackages}/iot_data
'';
doCheck = false;
}