If a Python package does not come with either `format` or `pyproject` we consider it a setuptools build, that calls `setup.py` directly, which is deprecated. This change, as a first step, migrates a large chunk of these packages to set setuptools as their explicit format This is so we can unify the problem space for the next step of the migration.
51 lines
1.1 KiB
Nix
51 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
click,
|
|
pyyaml,
|
|
tqdm,
|
|
pytestCheckHook,
|
|
pytest-mock,
|
|
}:
|
|
let
|
|
version = "2.3.2";
|
|
in
|
|
buildPythonPackage {
|
|
pname = "docstr-coverage";
|
|
inherit version;
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "HunterMcGushion";
|
|
repo = "docstr_coverage";
|
|
tag = "v${version}";
|
|
hash = "sha256-k1ny4fWS+CmgLNWPlYPsscjei2UZ6h8QJrZSay5abck=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
pyyaml
|
|
tqdm
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytest-mock
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError: assert 'docstr_coverage' in '/build/source/tests'
|
|
"test_set_config_defaults_with_ignore_patterns"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Docstring coverage analysis and rating for Python";
|
|
mainProgram = "docstr-coverage";
|
|
homepage = "https://github.com/HunterMcGushion/docstr_coverage";
|
|
changelog = "https://github.com/HunterMcGushion/docstr_coverage/blob/master/CHANGELOG.md";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ augustebaum ];
|
|
};
|
|
}
|