mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
python3Packages.awesomeversion: init at 20.12.5
This commit is contained in:
parent
213286bb18
commit
717020f3f6
39
pkgs/development/python-modules/awesomeversion/default.nix
Normal file
39
pkgs/development/python-modules/awesomeversion/default.nix
Normal file
@ -0,0 +1,39 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "awesomeversion";
|
||||
version = "20.12.5";
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "ludeeus";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "1jwlfqnrqlxjp30fj9bcqh7vgicmpdbn5kjdcmll4srnl87lalfg";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py --replace "main" ${version}
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ requests ];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "awesomeversion" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python module to deal with versions";
|
||||
homepage = "https://github.com/ludeeus/awesomeversion";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -541,6 +541,8 @@ in {
|
||||
|
||||
awesome-slugify = callPackage ../development/python-modules/awesome-slugify { };
|
||||
|
||||
awesomeversion = callPackage ../development/python-modules/awesomeversion { };
|
||||
|
||||
awkward0 = callPackage ../development/python-modules/awkward0 { };
|
||||
awkward = callPackage ../development/python-modules/awkward { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user