depot/third_party/nixpkgs/pkgs/development/python-modules/shouldbe/default.nix
Default email 58f8944c92 Project import generated by Copybara.
GitOrigin-RevId: 5aba0fe9766a7201a336249fd6cb76e0d7ba2faf
2020-09-24 23:45:31 -05:00

29 lines
642 B
Nix

{ stdenv
, 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 stdenv.lib; {
description = "Python Assertion Helpers inspired by Shouldly";
homepage = "https://pypi.python.org/pypi/shouldbe/";
license = licenses.mit;
};
}