dotfiles/entropy/nixos/modules/python.nix
2024-07-30 19:37:21 +02:00

43 lines
1.1 KiB
Nix

# This file is not linked
{ pkgs, lib, ... }:
{
environment.systemPackages = with pkgs;
let
my-python-packages = python-packages: with python-packages; [
pygments
pandas
numpy
pylint
# rpy2
# NOTE(feliix42): due to security vulnerability in the naughty zone for now.
# NOTE(feliix42): broken at the moment
# jupyter
## xDSL
(
buildPythonPackage rec {
pname = "xdsl";
version = "0.21.1";
src = fetchPypi {
inherit pname version;
#sha256 = "058q124g7s1gr2sisjcc1n3v25lb21x0wv37icmjagnxnc5288y5";
sha256 = lib.fakeSha256;
};
doCheck = false;
propagatedBuildInputs = [
pkgs.python3Packages.pip
pkgs.python3Packages.pytest
pkgs.python3Packages.filecheck
# pkgs.python3Packages.lit
pkgs.lit
pkgs.python3Packages.immutabledict
];
}
)
];
python-with-my-packages = python3.withPackages my-python-packages;
in
[ python-with-my-packages ];
}