python310Packages.mongomock: disable on older Python releases

- add format
- adjust inputs
This commit is contained in:
Fabian Affolter 2022-07-09 10:49:04 +02:00 committed by GitHub
parent 21a43e94ac
commit 80e1334f33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,19 +1,23 @@
{ lib
, buildPythonPackage
, fetchPypi
, packaging
, pbr
, sentinels
, six
, pytestCheckHook
, pythonOlder
, sentinels
}:
buildPythonPackage rec {
pname = "mongomock";
version = "4.1.2";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-8GzWKvuK4+9jujE0mr0iCmV+8N1PAkOilYfFIT+TG30=";
hash = "sha256-8GzWKvuK4+9jujE0mr0iCmV+8N1PAkOilYfFIT+TG30=";
};
nativeBuildInputs = [
@ -21,15 +25,17 @@ buildPythonPackage rec {
];
propagatedBuildInputs = [
packaging
sentinels
six
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "mongomock" ];
pythonImportsCheck = [
"mongomock"
];
meta = with lib; {
homepage = "https://github.com/mongomock/mongomock";