1{ lib
2, buildPythonPackage
3, pythonAtLeast
4, fetchPypi
5, nose
6, forbiddenfruit
7}:
8
9buildPythonPackage rec {
10 version = "0.1.2";
11 pname = "shouldbe";
12 # incompatible, https://github.com/DirectXMan12/should_be/issues/4
13 disabled = pythonAtLeast "3.8";
14
15 src = fetchPypi {
16 inherit pname version;
17 sha256 = "16zbvjxf71dl4yfbgcr6idyim3mdrfvix1dv8b95p0s9z07372pj";
18 };
19
20 nativeCheckInputs = [ nose ];
21 propagatedBuildInputs = [ forbiddenfruit ];
22
23 meta = with lib; {
24 description = "Python Assertion Helpers inspired by Shouldly";
25 homepage = "https://pypi.python.org/pypi/shouldbe/";
26 license = licenses.mit;
27 };
28
29}