32 lines
937 B
Nix
32 lines
937 B
Nix
|
{
|
||
|
description = "A very basic flake";
|
||
|
inputs = {
|
||
|
nixpkgs.url = "github:NixOS/nixpkgs";
|
||
|
flake-utils = {
|
||
|
url = "github:numtide/flake-utils";
|
||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
outputs = { self, nixpkgs, flake-utils }:
|
||
|
flake-utils.lib.eachDefaultSystem (system:
|
||
|
let
|
||
|
pkgs = import nixpkgs { inherit system; };
|
||
|
pythonPackages = pkgs.python310Packages;
|
||
|
pythonDeps = with pythonPackages; [ mypy flask pytest pylint black types-setuptools ];
|
||
|
|
||
|
in
|
||
|
{
|
||
|
packages.pronoun-o-matic = pythonPackages.buildPythonApplication {
|
||
|
pname = "pronoun-o-matic";
|
||
|
version = "1.0";
|
||
|
propagatedBuildInputs = pythonDeps;
|
||
|
src = ./.;
|
||
|
};
|
||
|
devShell = pkgs.mkShell {
|
||
|
buildInputs = [pythonPackages.python] ++ pythonDeps;
|
||
|
};
|
||
|
defaultPackage = self.packages.${system}.pronoun-o-matic;
|
||
|
});
|
||
|
}
|