1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pbr, 6 pytestCheckHook, 7 pytest-cov-stub, 8}: 9 10buildPythonPackage rec { 11 pname = "git-url-parse"; 12 version = "1.2.2"; 13 format = "setuptools"; 14 15 src = fetchFromGitHub { 16 owner = "coala"; 17 repo = "git-url-parse"; 18 rev = version; 19 hash = "sha256-+0V/C3wE02ppdDGn7iqdvmgsUwTR7THUakUilvkzoYg="; 20 }; 21 22 # Manually set version because prb wants to get it from the git 23 # upstream repository (and we are installing from tarball instead) 24 env.PBR_VERSION = version; 25 26 propagatedBuildInputs = [ pbr ]; 27 28 pythonImportsCheck = [ "giturlparse" ]; 29 30 nativeCheckInputs = [ 31 pytestCheckHook 32 pytest-cov-stub 33 ]; 34 35 meta = with lib; { 36 description = "Simple GIT URL parser"; 37 homepage = "https://github.com/coala/git-url-parse"; 38 changelog = "https://github.com/coala/git-url-parse/blob/${src.rev}/CHANGELOG.rst"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ ]; 41 }; 42}