Skip to content

Commit

Permalink
python312Packages.scales: modernize; adopt
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrox0 committed Oct 14, 2024
1 parent 5b69bff commit 6305fa4
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions pkgs/development/python-modules/scales/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
pytestCheckHook,
fetchpatch2,
six,
setuptools,
}:

buildPythonPackage rec {
pname = "scales";
version = "1.0.9";
format = "setuptools";
pyproject = true;

src = fetchPypi {
inherit pname version;
sha256 = "8b6930f7d4bf115192290b44c757af5e254e3fcfcb75ff9a51f5c96a404e2753";
hash = "sha256-i2kw99S/EVGSKQtEx1evXiVOP8/Ldf+aUfXJakBOJ1M=";
};

patches = [
Expand All @@ -33,12 +34,16 @@ buildPythonPackage rec {
done;
'';

build-system = [ setuptools ];

dependencies = [ six ];

nativeCheckInputs = [ pytestCheckHook ];
propagatedBuildInputs = [ six ];

meta = with lib; {
meta = {
description = "Stats for Python processes";
homepage = "https://www.github.com/Cue/scales";
license = licenses.asl20;
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ pyrox0 ];
};
}

0 comments on commit 6305fa4

Please sign in to comment.