plfit: init at 0.9.3

This commit is contained in:
Robert Schütz 2022-04-03 18:05:50 +00:00 committed by Robert Schütz
parent 97ed9effd2
commit a0a955ba45
3 changed files with 62 additions and 0 deletions

View file

@ -0,0 +1,54 @@
{ lib
, stdenv
, fetchFromGitHub
, fetchpatch
, cmake
, python ? null
, swig
, llvmPackages
}:
stdenv.mkDerivation rec {
pname = "plfit";
version = "0.9.3";
src = fetchFromGitHub {
owner = "ntamas";
repo = "plfit";
rev = version;
hash = "sha256-y4n6AlGtuuUuA+33oF7lGOYuKSqea4GMSJlv9PaSpQ8=";
};
patches = [
# https://github.com/ntamas/plfit/pull/41
(fetchpatch {
name = "use-cmake-install-full-dir.patch";
url = "https://github.com/ntamas/plfit/commit/d0e77c80e6e899298240e6be465cf580603f6ee2.patch";
hash = "sha256-wi3qCp6ZQtrKuM7XDA6xCXunCiqsyhnkxmg2eSmxjYM=";
})
];
nativeBuildInputs = [
cmake
] ++ lib.optionals (!isNull python) [
python
swig
];
cmakeFlags = [
"-DPLFIT_USE_OPENMP=ON"
] ++ lib.optionals (!isNull python) [
"-DPLFIT_COMPILE_PYTHON_MODULE=ON"
];
buildInputs = lib.optionals stdenv.cc.isClang [
llvmPackages.openmp
];
meta = with lib; {
description = "Fitting power-law distributions to empirical data";
homepage = "https://github.com/ntamas/plfit";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ dotlambda ];
};
}

View file

@ -9077,6 +9077,10 @@ with pkgs;
pleroma = callPackage ../servers/pleroma { };
plfit = callPackage ../tools/misc/plfit {
python = null;
};
ploticus = callPackage ../tools/graphics/ploticus {
libpng = libpng12;
};

View file

@ -6384,6 +6384,10 @@ in {
plexwebsocket = callPackage ../development/python-modules/plexwebsocket { };
plfit = toPythonModule (pkgs.plfit.override {
inherit (self) python;
});
plone-testing = callPackage ../development/python-modules/plone-testing { };
plotly = callPackage ../development/python-modules/plotly { };