depot/third_party/nixpkgs/pkgs/development/python-modules/jaraco-classes/default.nix
Default email 2c76a4cb41 Project import generated by Copybara.
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
2023-11-16 04:20:00 +00:00

36 lines
811 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, isPy27
, setuptools-scm
, more-itertools
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "jaraco-classes";
version = "3.3.0";
format = "pyproject";
disabled = isPy27;
src = fetchFromGitHub {
owner = "jaraco";
repo = "jaraco.classes";
rev = "refs/tags/v${version}";
sha256 = "sha256-DW8qf6G6997vBOaO1+Bdx4LBvKfpl/MiiFqWJYKE/pg=";
};
pythonNamespaces = [ "jaraco" ];
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ more-itertools ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Utility functions for Python class constructs";
homepage = "https://github.com/jaraco/jaraco.classes";
license = licenses.mit;
};
}