Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / sure / default.nix
blob55638abad0031e6e4c8b818686f0c249dea72f92
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , nose
5 , mock
6 , six
7 , isPyPy
8 , pythonOlder
9 }:
11 buildPythonPackage rec {
12   pname = "sure";
13   version = "2.0.1";
14   format = "setuptools";
16   disabled = isPyPy;
18   src = fetchPypi {
19     inherit pname version;
20     sha256 = "sha256-yPxvq8Dn9phO6ruUJUDkVkblvvC7mf5Z4C2mNOTUuco=";
21   };
23   postPatch = ''
24     substituteInPlace setup.cfg \
25       --replace "rednose = 1" ""
26   '';
28   propagatedBuildInputs = [
29     mock
30     six
31   ];
33   nativeCheckInputs = [
34     nose
35   ];
37   pythonImportsCheck = [
38     "sure"
39   ];
41   meta = with lib; {
42     description = "Utility belt for automated testing";
43     homepage = "https://sure.readthedocs.io/";
44     changelog = "https://github.com/gabrielfalcao/sure/blob/v${version}/CHANGELOG.md";
45     license = licenses.gpl3Plus;
46     maintainers = with maintainers; [ ];
47   };