Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f467c3e13a50
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: b4615c3b6a3e
Choose a head ref
  • 1 commit
  • 2 files changed
  • 1 contributor

Commits on Jan 9, 2020

  1. python3Packages.pycm: init at 2.5

    bcdarwin authored and Jon committed Jan 9, 2020
    Copy the full SHA
    b4615c3 View commit details
Showing with 37 additions and 0 deletions.
  1. +35 −0 pkgs/development/python-modules/pycm/default.nix
  2. +2 −0 pkgs/top-level/python-packages.nix
35 changes: 35 additions & 0 deletions pkgs/development/python-modules/pycm/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k, numpy, pytest }:

buildPythonPackage rec {
pname = "pycm";
version = "2.5";

disabled = !isPy3k;

src = fetchFromGitHub {
owner = "sepandhaghighi";
repo = pname;
rev = "v${version}";
sha256 = "0zfv20hd7zq95sflsivjk47b0sm7q76w7fv2i2mafn83ficzx0p0";
};

# remove a trivial dependency on the author's `art` Python ASCII art library
postPatch = ''
rm pycm/__main__.py
substituteInPlace setup.py --replace '=get_requires()' '=[]'
'';

checkInputs = [ pytest ];
propagatedBuildInputs = [ numpy ];

checkPhase = ''
pytest Test/
'';

meta = with stdenv.lib; {
description = "Multiclass confusion matrix library";
homepage = https://pycm.ir;
license = licenses.mit;
maintainers = with maintainers; [ bcdarwin ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
@@ -1022,6 +1022,8 @@ in {

PyChromecast = callPackage ../development/python-modules/pychromecast { };

pycm = callPackage ../development/python-modules/pycm { };

py-cpuinfo = callPackage ../development/python-modules/py-cpuinfo { };

py-lru-cache = callPackage ../development/python-modules/py-lru-cache { };