This commit is contained in:
2025-10-28 11:08:30 +01:00
commit d4ae65bb30
6 changed files with 176 additions and 0 deletions

31
flake.nix Normal file
View File

@@ -0,0 +1,31 @@
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
};
outputs =
{ self, nixpkgs }:
let
system = "x86_64-linux"; # Adjust if necessary
pkgs = import nixpkgs {
inherit system;
};
in
{
packages.${system} = {
xsdata-pydantic = pkgs.python313Packages.callPackage ./xsdata-pydantic.nix { };
entsoe-apy = pkgs.python313Packages.callPackage ./entsoe-apy.nix {
xsdata-pydantic = self.packages.${system}.xsdata-pydantic;
};
};
devShells.${system} = {
default = pkgs.mkShell {
name = "packaging";
venvDir = "./.venv";
buildInputs = [ pkgs.python313Packages.pip ] ++ builtins.attrValues self.packages.${system};
};
};
};
}