1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-19 07:59:24 +03:00
nixpkgs/pkgs/development/python-modules/python-utils/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
780 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, six
, pytest-mypy
}:
buildPythonPackage rec {
pname = "python-utils";
version = "3.1.0";
src = fetchFromGitHub {
owner = "WoLpH";
repo = pname;
rev = "v${version}";
sha256 = "sha256-+NgcVIDM9f2OKBpJNWlSyFxEONltPWJSWIu400/5RkQ=
";
};
# disable coverage and linting
2018-01-13 03:47:40 +08:00
postPatch = ''
sed -i '/--cov/d' pytest.ini
sed -i '/--flake8/d' pytest.ini
2018-01-13 03:47:40 +08:00
'';
propagatedBuildInputs = [
six
];
checkInputs = [
pytest-mypy
pytestCheckHook
];
pytestFlagsArray = [
"_python_utils_tests"
];
meta = with lib; {
description = "Module with some convenient utilities";
homepage = "https://github.com/WoLpH/python-utils";
license = licenses.bsd3;
};
}