NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.22k stars 14.22k forks source link

Package request: pythonPackages.category-encoders #306451

Open computerscience-person opened 6 months ago

computerscience-person commented 6 months ago

Project description

Metadata

Would be nice for this to be packaged as its relatively straightforward. Below is a snippet from my flake packaging category-encoders. Haven't tested if it 100% works, but I hope it gives a good starting point for a maintainer.

{
  category-encoders = let
        pname = "category-encoders";
        version = "2.6.3";
      in pkgs.python3Packages.buildPythonPackage {
        inherit pname version;
        src = pkgs.fetchurl {
          # inherit pname version;
          url = "https://files.pythonhosted.org/packages/3f/21/79a3fdf7998035ddd601ed4df6ac8b1e273ec61b30c05cf18df0042e308f/category_encoders-2.6.3.tar.gz";
          sha256 = "d9f14705ed4b536eaf9cfc81b76d67a50b2f16f8f3eda498c57d7da19655530c";
        };
        buildInputs = with pkgs.python3Packages; [
          numpy
          scikit-learn
          scipy
          statsmodels
          pandas
          patsy
        ];
}

Add a :+1: reaction to issues you find important.

computerscience-person commented 6 months ago

I can try to package this one, as this is a relatively simple library, yet I do not have the enough knowledge to make a package, nor am I able to parse through the frankly frustrating documentation regarding the process of becoming a package maintainer.