nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 45 lines 780 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, six 6, pytest-mypy 7}: 8 9buildPythonPackage rec { 10 pname = "python-utils"; 11 version = "3.1.0"; 12 13 src = fetchFromGitHub { 14 owner = "WoLpH"; 15 repo = pname; 16 rev = "v${version}"; 17 sha256 = "sha256-+NgcVIDM9f2OKBpJNWlSyFxEONltPWJSWIu400/5RkQ= 18"; 19 }; 20 21 # disable coverage and linting 22 postPatch = '' 23 sed -i '/--cov/d' pytest.ini 24 sed -i '/--flake8/d' pytest.ini 25 ''; 26 27 propagatedBuildInputs = [ 28 six 29 ]; 30 31 checkInputs = [ 32 pytest-mypy 33 pytestCheckHook 34 ]; 35 36 pytestFlagsArray = [ 37 "_python_utils_tests" 38 ]; 39 40 meta = with lib; { 41 description = "Module with some convenient utilities"; 42 homepage = "https://github.com/WoLpH/python-utils"; 43 license = licenses.bsd3; 44 }; 45}