chore: yoink everything not needed for nix package

This commit is contained in:
Technofab 2023-06-07 19:21:55 +02:00
parent 0650d80b0c
commit 0955cb2e22
No known key found for this signature in database
GPG key ID: A0AA746B951C8830
36 changed files with 101 additions and 3351 deletions

47
flake.nix Normal file
View file

@ -0,0 +1,47 @@
{
inputs.nixpkgs.url = "nixpkgs/nixos-23.05";
outputs = { self, nixpkgs, systems }:
let
version = "2023.1125";
forEachSystem = nixpkgs.lib.genAttrs (import systems);
nixpkgsFor = forEachSystem (system: import nixpkgs { inherit system; });
in {
packages = forEachSystem (system:
let
pkgs = nixpkgs.legacyPackages.${system};
in {
bumpver = pkgs.python3.pkgs.buildPythonApplication rec {
pname = "bumpver";
inherit version;
src = ./.;
propagatedBuildInputs = with pkgs.python3.pkgs; [
pathlib2
click
toml
lexid
colorama
setuptools
rich
looseversion
];
nativeCheckInputs = [
pkgs.python3.pkgs.pytestCheckHook
pkgs.git
pkgs.mercurial
];
disabledTests = [
# fails due to more aggressive setuptools version specifier validation
"test_parse_default_pattern"
];
};
}
);
defaultPackage = forEachSystem (system: self.packages.${system}.bumpver);
};
}