33 lines
726 B
Nix
33 lines
726 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
|
};
|
|
outputs = { self, nixpkgs, ... }: {
|
|
packages.x86_64-linux = let
|
|
pkgs = import nixpkgs {
|
|
system = "x86_64-linux";
|
|
};
|
|
in {
|
|
mu5001tool = pkgs.python3Packages.buildPythonPackage rec {
|
|
pname = "mu5001tool";
|
|
version = "0.0.1";
|
|
|
|
src = ./.;
|
|
|
|
format = "pyproject";
|
|
|
|
buildInputs = [ pkgs.python3Packages.hatchling ];
|
|
propagatedBuildInputs = with pkgs.python3Packages; [ requests ];
|
|
|
|
pythonImportsCheck = [ "mu5001tool" ];
|
|
};
|
|
default = self.packages.x86_64-linux.mu5001tool;
|
|
};
|
|
|
|
hydraJobs = {
|
|
inherit (self)
|
|
packages;
|
|
};
|
|
};
|
|
}
|