should work
This commit is contained in:
parent
f6030d3606
commit
7dc29b09c7
3 changed files with 24 additions and 13 deletions
|
|
@ -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-1 # should force the monkeypatch'd numpy
|
customPkgs.pythonPackages.numpy # should force the monkeypatch'd numpy
|
||||||
i3ipc
|
i3ipc
|
||||||
pandas
|
pandas
|
||||||
matplotlib
|
matplotlib
|
||||||
|
|
|
||||||
|
|
@ -11,20 +11,26 @@
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
|
customPython = pkgs.python311.override {
|
||||||
|
packageOverrides = self: super: {
|
||||||
|
numpy = numpy-1;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
customPythonPackages = customPython.pkgs;
|
||||||
in {
|
in {
|
||||||
|
inherit numpy-1 customPythonPackages;
|
||||||
|
|
||||||
fish-rust = pkgs.callPackage ./fish-rust {};
|
fish-rust = pkgs.callPackage ./fish-rust {};
|
||||||
|
|
||||||
python-rembg = pkgs.callPackage ./python-rembg {
|
python-rembg = pkgs.callPackage ./python-rembg {
|
||||||
inherit lib;
|
inherit lib;
|
||||||
fetchPypi = pkgs.fetchPypi;
|
fetchPypi = pkgs.fetchPypi;
|
||||||
python311Packages = numpy-1;
|
python311Packages = customPythonPackages;
|
||||||
|
|
||||||
python-pymatting = pkgs.callPackage ./python-pymatting {
|
python-pymatting = pkgs.callPackage ./python-pymatting {
|
||||||
inherit lib;
|
inherit lib;
|
||||||
fetchPypi = pkgs.fetchPypi;
|
fetchPypi = pkgs.fetchPypi;
|
||||||
python311Packages = numpy-1;
|
python311Packages = customPythonPackages;
|
||||||
};
|
};
|
||||||
|
|
||||||
python-opencv-headless = pkgs.callPackage ./python-opencv-headless {
|
python-opencv-headless = pkgs.callPackage ./python-opencv-headless {
|
||||||
inherit lib;
|
inherit lib;
|
||||||
fetchPypi = pkgs.fetchPypi;
|
fetchPypi = pkgs.fetchPypi;
|
||||||
|
|
@ -32,12 +38,13 @@ in {
|
||||||
pkg-config = pkgs.pkg-config;
|
pkg-config = pkgs.pkg-config;
|
||||||
stdenv = pkgs.stdenv;
|
stdenv = pkgs.stdenv;
|
||||||
makeWrapper = pkgs.makeWrapper;
|
makeWrapper = pkgs.makeWrapper;
|
||||||
python311Packages = numpy-1;
|
python311Packages = customPythonPackages;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
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 = customPythonPackages;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,17 +2,21 @@
|
||||||
lib,
|
lib,
|
||||||
python311Packages,
|
python311Packages,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
|
pkgs,
|
||||||
}: let
|
}: let
|
||||||
cusPydantic = python311Packages.pydantic.overridePythonAttrs (oldAttrs: rec {
|
cusPydantic = python311Packages.buildPythonPackage {
|
||||||
|
pname = "pydantic";
|
||||||
version = "1.10.18";
|
version = "1.10.18";
|
||||||
src = fetchFromGitHub {
|
format = "wheel";
|
||||||
owner = "pydantic";
|
src = pkgs.fetchurl {
|
||||||
repo = "pydantic";
|
url = "https://files.pythonhosted.org/packages/py3/p/pydantic/pydantic-1.10.18-py3-none-any.whl";
|
||||||
rev = "v${version}";
|
sha256 = "10iaggdy69wk6qkagqcnlsqchrsidvqhgh68r5p78lpw3yw8k886";
|
||||||
sha256 = "17v4y4l7bq8716y0vxv817n68k8rlc2sfa86a1jiala04s1jsmr0";
|
|
||||||
};
|
};
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
});
|
propagatedBuildInputs = with python311Packages; [
|
||||||
|
typing-extensions
|
||||||
|
];
|
||||||
|
};
|
||||||
in
|
in
|
||||||
python311Packages.buildPythonPackage rec {
|
python311Packages.buildPythonPackage rec {
|
||||||
pname = "nginx-language-server";
|
pname = "nginx-language-server";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue