added
This commit is contained in:
parent
4d736ca028
commit
9b30b99383
3 changed files with 41 additions and 4 deletions
|
|
@ -1,9 +1,17 @@
|
|||
{ pkgs ? import <nixpkgs> {}, lib ? pkgs.lib }:
|
||||
|
||||
{
|
||||
fish-rust = pkgs.callPackage ./fish-rust {};
|
||||
python-rembg = pkgs.callPackage ./python-rembg {
|
||||
let
|
||||
python-pymatting = pkgs.callPackage ./python-pymatting {
|
||||
inherit (pkgs) lib fetchPypi;
|
||||
python310Packages = pkgs.python310.pkgs;
|
||||
};
|
||||
in
|
||||
{
|
||||
fish-rust = pkgs.callPackage ./fish-rust {};
|
||||
python-pymatting = python-pymatting;
|
||||
python-rembg = pkgs.callPackage ./python-rembg {
|
||||
inherit (pkgs) lib fetchPypi;
|
||||
python310Packages = pkgs.python310.pkgs;
|
||||
inherit python-pymatting;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
28
pkgs/python-pymatting/default.nix
Normal file
28
pkgs/python-pymatting/default.nix
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{ lib, python310Packages, fetchPypi }:
|
||||
|
||||
python310Packages.buildPythonPackage rec {
|
||||
pname = "pymatting";
|
||||
version = "1.1.13";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-LNt8S++s3e9Netwt6ONKJy3mOdYIrlwKCGE9+kJTgQE="; # Updated hash
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with python310Packages; [
|
||||
numpy
|
||||
scipy
|
||||
pillow
|
||||
numba
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
meta = with lib; {
|
||||
description = "A library for alpha matting";
|
||||
homepage = "https://github.com/pymatting/pymatting";
|
||||
license = licenses.mit;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
{ lib, python310Packages, fetchPypi }:
|
||||
{ lib, python310Packages, fetchPypi, python-pymatting }:
|
||||
|
||||
python310Packages.buildPythonPackage rec {
|
||||
pname = "rembg";
|
||||
|
|
@ -27,6 +27,7 @@ python310Packages.buildPythonPackage rec {
|
|||
filetype
|
||||
pooch
|
||||
pympler
|
||||
python-pymatting
|
||||
scikit-image
|
||||
scipy
|
||||
tqdm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue