3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.dotmap: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-04-02 22:17:07 +02:00 committed by GitHub
parent cfb8083201
commit 6c5fc227d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,24 +2,32 @@
, buildPythonPackage
, fetchPypi
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "dotmap";
version = "1.3.27";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-gHCQIN8CIeF8TgHWeQu8GCRxK1aQFJJ/d7jZurxxMik=";
hash = "sha256-gHCQIN8CIeF8TgHWeQu8GCRxK1aQFJJ/d7jZurxxMik=";
};
checkInputs = [
pytestCheckHook
];
pytestFlagsArray = [ "dotmap/test.py" ];
pytestFlagsArray = [
"dotmap/test.py"
];
pythonImportsCheck = [ "dotmap" ];
pythonImportsCheck = [
"dotmap"
];
meta = with lib; {
description = "Python for dot-access dictionaries";