flakes/python/native/flake.nix

43 lines
1,021 B
Nix
Raw Normal View History

2024-02-16 08:51:04 +01:00
{
description = "Python flake with native packages";
2024-03-24 11:54:10 +01:00
inputs = {
2024-11-10 20:22:03 +01:00
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
2024-03-24 11:54:10 +01:00
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
2024-02-16 08:51:04 +01:00
2024-03-24 11:54:10 +01:00
outputs = { self, nixpkgs, nixpkgs-unstable, flake-utils}:
2024-02-16 08:51:04 +01:00
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs {
inherit system;
2024-03-24 11:54:10 +01:00
};
pkgs-unstable = import nixpkgs-unstable {
inherit system;
2024-02-16 08:51:04 +01:00
config.allowUnfree = true;
};
2024-03-24 11:54:10 +01:00
python-packages = p: with p; [
2024-11-10 20:22:03 +01:00
# biopython
# dask
# distributed
# numba
# numpy
2024-03-24 11:54:10 +01:00
];
2024-02-16 08:51:04 +01:00
in {
devShells.default = pkgs.mkShell {
2024-03-24 11:54:10 +01:00
packages = (with pkgs; [
python311
(python-packages python311Packages)
]) ++ (with pkgs-unstable; [
2024-11-10 20:22:03 +01:00
# nodejs
# memray
2024-02-16 08:51:04 +01:00
# Editor of your choice
2024-11-10 20:22:03 +01:00
(jetbrains.plugins.addPlugins jetbrains.pycharm-professional [ "github-copilot" ])
2024-03-24 11:54:10 +01:00
# vscodium
]);
2024-02-16 08:51:04 +01:00
};
});
}