biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / sure / default.nix
blobf4ca02501d00eab1d7292172b54f471448447c95
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   setuptools,
6   pytestCheckHook,
7   mock,
8   six,
9   isPyPy,
12 buildPythonPackage rec {
13   pname = "sure";
14   version = "2.0.1";
15   pyproject = true;
17   disabled = isPyPy;
19   src = fetchPypi {
20     inherit pname version;
21     hash = "sha256-yPxvq8Dn9phO6ruUJUDkVkblvvC7mf5Z4C2mNOTUuco=";
22   };
24   postPatch = ''
25     substituteInPlace setup.cfg \
26       --replace "rednose = 1" "" \
27       --replace-fail "--cov=sure" ""
28   '';
30   build-system = [ setuptools ];
32   dependencies = [
33     mock
34     six
35   ];
37   nativeCheckInputs = [
38     pytestCheckHook
39     mock
40   ];
42   disabledTestPaths = [
43     "tests/test_old_api.py" # require nose
44   ];
46   pythonImportsCheck = [ "sure" ];
48   meta = {
49     description = "Utility belt for automated testing";
50     mainProgram = "sure";
51     homepage = "https://sure.readthedocs.io/";
52     changelog = "https://github.com/gabrielfalcao/sure/blob/v${version}/CHANGELOG.md";
53     license = lib.licenses.gpl3Plus;
54     maintainers = with lib.maintainers; [ sigmanificient ];
55   };