python3Packages.awesomeversion: 21.10.1 -> 21.11.0

This commit is contained in:
Fabian Affolter 2021-11-25 08:58:55 +01:00
parent 38116953c2
commit c591aba83f

View file

@ -3,32 +3,35 @@
, fetchFromGitHub , fetchFromGitHub
, pytestCheckHook , pytestCheckHook
, pythonOlder , pythonOlder
, requests
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "awesomeversion"; pname = "awesomeversion";
version = "21.10.1"; version = "21.11.0";
format = "setuptools";
disabled = pythonOlder "3.8"; disabled = pythonOlder "3.8";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ludeeus"; owner = "ludeeus";
repo = pname; repo = pname;
rev = version; rev = version;
sha256 = "sha256-y+QU8T1Cb6FpRcRqhao4KPdE9XlU5C+GURaEuahC25E="; sha256 = "sha256-qxN5AdLlzadG0/raeAyJ/37PLgYLndl1JQSVkgdLv/4=";
}; };
postPatch = '' postPatch = ''
substituteInPlace setup.py --replace "main" ${version} # Upstream doesn't set a version
substituteInPlace setup.py \
--replace "main" ${version}
''; '';
propagatedBuildInputs = [ requests ];
checkInputs = [ checkInputs = [
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ "awesomeversion" ]; pythonImportsCheck = [
"awesomeversion"
];
meta = with lib; { meta = with lib; {
description = "Python module to deal with versions"; description = "Python module to deal with versions";