pronoun-o-matic/flake.nix

32 lines
961 B
Nix
Raw Normal View History

2022-06-04 22:18:32 +02:00
{
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;
2022-06-05 21:50:45 +02:00
pythonDeps = with pythonPackages; [ mypy flask pytest pylint black types-setuptools requests types-requests ];
2022-06-04 22:18:32 +02:00
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;
});
}