Init repo
This commit is contained in:
2
pyproject/.gitignore
vendored
Normal file
2
pyproject/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
__pycache__
|
||||
result
|
||||
33
pyproject/flake.nix
Normal file
33
pyproject/flake.nix
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
};
|
||||
outputs = { self, nixpkgs, ... }: {
|
||||
packages.x86_64-linux = let
|
||||
pkgs = import nixpkgs {
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
in {
|
||||
my_project = pkgs.python311Packages.buildPythonPackage rec {
|
||||
pname = "my_project";
|
||||
version = "0.0.1";
|
||||
|
||||
src = ./.;
|
||||
|
||||
format = "pyproject";
|
||||
|
||||
buildInputs = [ pkgs.python311Packages.hatchling ];
|
||||
propagatedBuildInputs = with pkgs.python311Packages; [
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "my_project" ];
|
||||
};
|
||||
default = self.packages.x86_64-linux.my_project;
|
||||
};
|
||||
|
||||
hydraJobs = {
|
||||
inherit (self)
|
||||
packages;
|
||||
};
|
||||
};
|
||||
}
|
||||
18
pyproject/pyproject.toml
Normal file
18
pyproject/pyproject.toml
Normal file
@@ -0,0 +1,18 @@
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "my_project"
|
||||
version = "0.0.1"
|
||||
authors = [
|
||||
{ name="clerie", email="hallo@clerie.de" },
|
||||
]
|
||||
description = ""
|
||||
readme = "README.md"
|
||||
license = { file="LICENSE" }
|
||||
requires-python = ">=3.11"
|
||||
|
||||
dependencies = [
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user