updates
This commit is contained in:
parent
026d09a189
commit
8ed99daa24
7 changed files with 117 additions and 56 deletions
|
|
@ -9,42 +9,34 @@
|
|||
inherit version;
|
||||
sha256 = "0410j6jfz1yzm5s0v0yrc1j0q6ih4322357and7arr0jxnlsn0ia";
|
||||
};
|
||||
meta.priority = -1;
|
||||
});
|
||||
|
||||
customPackages = pkgs.python311Packages.override {
|
||||
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 {
|
||||
fish-rust = pkgs.callPackage ./fish-rust {};
|
||||
|
||||
python-pymatting = pkgs.callPackage ./python-pymatting {
|
||||
inherit lib;
|
||||
fetchPypi = pkgs.fetchPypi;
|
||||
python311Packages = customPackages;
|
||||
};
|
||||
|
||||
python-opencv-headless = pkgs.callPackage ./python-opencv-headless {
|
||||
inherit lib;
|
||||
fetchPypi = pkgs.fetchPypi;
|
||||
cmake = pkgs.cmake;
|
||||
pkg-config = pkgs.pkg-config;
|
||||
stdenv = pkgs.stdenv;
|
||||
makeWrapper = pkgs.makeWrapper;
|
||||
python311Packages = customPackages;
|
||||
};
|
||||
|
||||
python-rembg = pkgs.callPackage ./python-rembg {
|
||||
inherit lib;
|
||||
fetchPypi = pkgs.fetchPypi;
|
||||
python311Packages = customPackages;
|
||||
python311Packages = numpy-1;
|
||||
|
||||
python-pymatting = pkgs.callPackage ./python-pymatting {
|
||||
inherit lib;
|
||||
fetchPypi = pkgs.fetchPypi;
|
||||
python311Packages = customPackages;
|
||||
python311Packages = numpy-1;
|
||||
};
|
||||
|
||||
python-opencv-headless = pkgs.callPackage ./python-opencv-headless {
|
||||
|
|
@ -54,9 +46,13 @@ in {
|
|||
pkg-config = pkgs.pkg-config;
|
||||
stdenv = pkgs.stdenv;
|
||||
makeWrapper = pkgs.makeWrapper;
|
||||
python311Packages = customPackages;
|
||||
python311Packages = numpy-1;
|
||||
};
|
||||
};
|
||||
|
||||
pythonPackages = customPackages;
|
||||
python-ngx-lsp = pkgs.callPackage ./python-nginx-language-server {
|
||||
inherit lib;
|
||||
fetchFromGitHub = pkgs.fetchFromGitHub;
|
||||
python311Packages = customPydantic;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
37
pkgs/python-nginx-language-server/default.nix
Normal file
37
pkgs/python-nginx-language-server/default.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{ lib, python311Packages, fetchFromGitHub }:
|
||||
|
||||
let
|
||||
customPydantic = python311Packages.pydantic.overridePythonAttrs (oldAttrs: {
|
||||
doCheck = false;
|
||||
});
|
||||
in
|
||||
python311Packages.buildPythonPackage rec {
|
||||
pname = "nginx-language-server";
|
||||
version = "0.8.0";
|
||||
format = "pyproject";
|
||||
src = fetchFromGitHub {
|
||||
owner = "pappasam";
|
||||
repo = "nginx-language-server";
|
||||
rev = "v${version}";
|
||||
sha256 = "AXWrNt4f3jkAbidE1goDgFicu4sSBv08f/Igyh2bRII=";
|
||||
};
|
||||
nativeBuildInputs = with python311Packages; [
|
||||
setuptools
|
||||
poetry-core
|
||||
];
|
||||
propagatedBuildInputs = with python311Packages; [
|
||||
pygls
|
||||
customPydantic
|
||||
crossplane
|
||||
lsprotocol
|
||||
];
|
||||
pythonImportsCheck = [ "nginx_language_server" ];
|
||||
doCheck = false;
|
||||
meta = with lib; {
|
||||
description = "A language server for nginx";
|
||||
homepage = "https://github.com/pappasam/nginx-language-server";
|
||||
license = licenses.gpl3Only;
|
||||
platforms = platforms.all;
|
||||
maintainers = with maintainers; [ "Cobray" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue