dotfiles/entropy/nixos/modules/python.nix

43 lines
1 KiB
Nix
Raw Normal View History

2020-12-21 14:13:39 +00:00
# This file is not linked
{ pkgs, ... }:
{
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.
2023-11-27 07:42:31 +00:00
# NOTE(feliix42): broken at the moment
# jupyter
2023-05-05 13:13:43 +00:00
## xDSL
(
buildPythonPackage rec {
pname = "xdsl";
2024-07-30 16:29:08 +00:00
version = "0.21.1";
2023-05-05 13:13:43 +00:00
src = fetchPypi {
inherit pname version;
2024-07-30 16:43:54 +00:00
sha256 = "058q124g7s1gr2sisjcc1n3v25lb21x0wv37icmjagnxnc5288y5";
2023-05-05 13:13:43 +00:00
};
doCheck = false;
propagatedBuildInputs = [
pkgs.python3Packages.pip
pkgs.python3Packages.pytest
pkgs.python3Packages.filecheck
# pkgs.python3Packages.lit
pkgs.lit
pkgs.python3Packages.immutabledict
];
}
)
2020-12-21 14:13:39 +00:00
];
python-with-my-packages = python3.withPackages my-python-packages;
in
[ python-with-my-packages ];
}