mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 10:16:44 +01:00
30 lines
632 B
Nix
30 lines
632 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonAtLeast
|
|
, fetchPypi
|
|
, nose
|
|
, forbiddenfruit
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.1.2";
|
|
pname = "shouldbe";
|
|
# incompatible, https://github.com/DirectXMan12/should_be/issues/4
|
|
disabled = pythonAtLeast "3.8";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "16zbvjxf71dl4yfbgcr6idyim3mdrfvix1dv8b95p0s9z07372pj";
|
|
};
|
|
|
|
checkInputs = [ nose ];
|
|
propagatedBuildInputs = [ forbiddenfruit ];
|
|
|
|
meta = with lib; {
|
|
description = "Python Assertion Helpers inspired by Shouldly";
|
|
homepage = "https://pypi.python.org/pypi/shouldbe/";
|
|
license = licenses.mit;
|
|
};
|
|
|
|
}
|