should fix python now

This commit is contained in:
alsaiduq-lab 2025-03-30 03:47:35 -06:00
parent 8ed99daa24
commit c95c2af3d5
3 changed files with 2 additions and 21 deletions

View file

@ -19,7 +19,7 @@
customPkgs.python-pymatting customPkgs.python-pymatting
customPkgs.python-opencv-headless customPkgs.python-opencv-headless
customPkgs.python-rembg customPkgs.python-rembg
customPkgs.pythonPackages.numpy # should force the monkeypatch'd numpy customPkgs.pythonPackages.numpy-1 # should force the monkeypatch'd numpy
i3ipc i3ipc
pandas pandas
matplotlib matplotlib

View file

@ -11,20 +11,6 @@
}; };
}); });
customPydantic = pkgs.python311Packages.override {
overrides = self: super: {
numpy = numpy-1;
pydantic = super.pydantic.overridePythonAttrs (oldAttrs: rec {
version = "1.10.18";
src = pkgs.fetchPypi {
pname = "pydantic";
inherit version;
sha256 = "uuvf8ZB9HZahOcJRNqm7fRfhGPEzp2ou87hF6DHjQDo=";
};
nativeBuildInputs = oldAttrs.nativeBuildInputs or [] ++ [ self.setuptools ];
});
};
};
in { in {
fish-rust = pkgs.callPackage ./fish-rust {}; fish-rust = pkgs.callPackage ./fish-rust {};
@ -53,6 +39,5 @@ in {
python-ngx-lsp = pkgs.callPackage ./python-nginx-language-server { python-ngx-lsp = pkgs.callPackage ./python-nginx-language-server {
inherit lib; inherit lib;
fetchFromGitHub = pkgs.fetchFromGitHub; fetchFromGitHub = pkgs.fetchFromGitHub;
python311Packages = customPydantic;
}; };
} }

View file

@ -1,10 +1,5 @@
{ lib, python311Packages, fetchFromGitHub }: { lib, python311Packages, fetchFromGitHub }:
let
customPydantic = python311Packages.pydantic.overridePythonAttrs (oldAttrs: {
doCheck = false;
});
in
python311Packages.buildPythonPackage rec { python311Packages.buildPythonPackage rec {
pname = "nginx-language-server"; pname = "nginx-language-server";
version = "0.8.0"; version = "0.8.0";
@ -23,6 +18,7 @@ python311Packages.buildPythonPackage rec {
pygls pygls
customPydantic customPydantic
crossplane crossplane
pydantic
lsprotocol lsprotocol
]; ];
pythonImportsCheck = [ "nginx_language_server" ]; pythonImportsCheck = [ "nginx_language_server" ];