commit
bbe9795596
@ -0,0 +1,48 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchPypi |
||||
, pytestCheckHook |
||||
, pythonOlder |
||||
, git |
||||
, hatchling |
||||
, setuptools-scm |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "hatch-vcs"; |
||||
version = "0.2.0"; |
||||
format = "pyproject"; |
||||
|
||||
disabled = pythonOlder "3.7"; |
||||
|
||||
src = fetchPypi { |
||||
pname = "hatch_vcs"; |
||||
inherit version; |
||||
sha256 = "sha256-mRPXM7NO7JuwNF0GJsoyFlpK0t4V0c5kPDbQnKkIq/8="; |
||||
}; |
||||
|
||||
nativeBuildInputs = [ |
||||
hatchling |
||||
]; |
||||
|
||||
propagatedBuildInputs = [ |
||||
hatchling |
||||
setuptools-scm |
||||
]; |
||||
|
||||
checkInputs = [ |
||||
git |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ |
||||
"hatch_vcs" |
||||
]; |
||||
|
||||
meta = with lib; { |
||||
description = "A plugin for Hatch that uses your preferred version control system (like Git) to determine project versions"; |
||||
homepage = "https://github.com/ofek/hatch-vcs"; |
||||
license = licenses.mit; |
||||
maintainers = with maintainers; [ cpcloud ]; |
||||
}; |
||||
} |
@ -0,0 +1,32 @@ |
||||
{ lib |
||||
, buildPythonPackage |
||||
, fetchFromGitHub |
||||
, pytestCheckHook |
||||
}: |
||||
|
||||
buildPythonPackage rec { |
||||
pname = "py-nextbusnext"; |
||||
version = "0.1.5"; |
||||
|
||||
format = "setuptools"; |
||||
|
||||
src = fetchFromGitHub { |
||||
owner = "ViViDboarder"; |
||||
repo = "py_nextbus"; |
||||
rev = "v${version}"; |
||||
hash = "sha256-uUHA8v5iTISmPaTgk0RvcLLRM34f3JXUjZClKGXdMoI="; |
||||
}; |
||||
|
||||
checkInputs = [ |
||||
pytestCheckHook |
||||
]; |
||||
|
||||
pythonImportsCheck = [ "py_nextbus" ]; |
||||
|
||||
meta = { |
||||
description = "Minimalistic Python client for the NextBus public API"; |
||||
homepage = "https://github.com/ViViDboarder/py_nextbus"; |
||||
license = lib.licenses.mit; |
||||
maintainers = with lib.maintainers; [ dotlambda ]; |
||||
}; |
||||
} |
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue