depot/third_party/nixpkgs/pkgs/development/python-modules/shouldbe/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

30 lines
663 B
Nix

{ lib
, buildPythonPackage
, pythonAtLeast
, fetchPypi
, nose
, forbiddenfruit
}:
buildPythonPackage rec {
version = "0.1.2";
format = "setuptools";
pname = "shouldbe";
# incompatible, https://github.com/DirectXMan12/should_be/issues/4
disabled = pythonAtLeast "3.8";
src = fetchPypi {
inherit pname version;
sha256 = "16zbvjxf71dl4yfbgcr6idyim3mdrfvix1dv8b95p0s9z07372pj";
};
nativeCheckInputs = [ nose ];
propagatedBuildInputs = [ forbiddenfruit ];
meta = with lib; {
description = "Python Assertion Helpers inspired by Shouldly";
homepage = "https://pypi.python.org/pypi/shouldbe/";
license = licenses.mit;
};
}