mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
python310Packages.lcgit: init at 0.2.0
This commit is contained in:
parent
710635f625
commit
c4d1f2b78c
42
pkgs/development/python-modules/lcgit/default.nix
Normal file
42
pkgs/development/python-modules/lcgit/default.nix
Normal file
@ -0,0 +1,42 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "lcgit";
|
||||
version = "0.2.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cisagov";
|
||||
repo = "lcgit";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-MYRqlfz2MRayBT7YGZmcyqJdoDRfENmgxk/TmhyoAlQ=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pytest.ini \
|
||||
--replace " --cov" ""
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"lcgit"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A pythonic Linear Congruential Generator iterator";
|
||||
homepage = "https://github.com/cisagov/lcgit";
|
||||
changelog = "https://github.com/cisagov/lcgit/releases/tag/v${version}";
|
||||
license = licenses.cc0;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -5292,6 +5292,8 @@ self: super: with self; {
|
||||
|
||||
lc7001 = callPackage ../development/python-modules/lc7001 { };
|
||||
|
||||
lcgit = callPackage ../development/python-modules/lcgit { };
|
||||
|
||||
lcov_cobertura = callPackage ../development/python-modules/lcov_cobertura { };
|
||||
|
||||
ldap3 = callPackage ../development/python-modules/ldap3 { };
|
||||
|
Loading…
Reference in New Issue
Block a user