depot/third_party/nixpkgs/pkgs/development/python-modules/aioshutil/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

50 lines
973 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools-scm
}:
buildPythonPackage rec {
pname = "aioshutil";
version = "1.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "kumaraditya303";
repo = pname;
rev = "v${version}";
hash = "sha256-CQIzNu1NrGDOh2uVif/EzB5C5t/Y/h9oT56Gp6jrOPQ=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
setuptools-scm
];
checkInputs = [
pytest-asyncio
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov aioshutil --cov-report xml" ""
'';
pythonImportsCheck = [
"aioshutil"
];
meta = with lib; {
description = "Asynchronous version of function of shutil module";
homepage = "https://github.com/kumaraditya303/aioshutil";
license = with licenses; [ bsd3 ];
maintainers = with maintainers; [ fab ];
};
}