2018-10-26 18:21:51 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
2020-09-20 17:13:34 +01:00
|
|
|
, pythonAtLeast
|
2018-10-26 18:21:51 +01:00
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, forbiddenfruit
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-04-02 20:49:50 +01:00
|
|
|
version = "0.1.2";
|
2018-10-26 18:21:51 +01:00
|
|
|
pname = "shouldbe";
|
2020-09-20 17:13:34 +01:00
|
|
|
# incompatible, https://github.com/DirectXMan12/should_be/issues/4
|
|
|
|
disabled = pythonAtLeast "3.8";
|
2018-10-26 18:21:51 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-04-02 20:49:50 +01:00
|
|
|
sha256 = "16zbvjxf71dl4yfbgcr6idyim3mdrfvix1dv8b95p0s9z07372pj";
|
2018-10-26 18:21:51 +01:00
|
|
|
};
|
|
|
|
|
2019-04-05 10:06:50 +01:00
|
|
|
checkInputs = [ nose ];
|
2018-10-26 18:21:51 +01:00
|
|
|
propagatedBuildInputs = [ forbiddenfruit ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python Assertion Helpers inspired by Shouldly";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pypi.python.org/pypi/shouldbe/";
|
2018-10-26 18:21:51 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|