1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00

Merge pull request #326399 from Tochiaha/pipchill

python312Packages.pip-chill: init at 1.0.3
This commit is contained in:
❄️ 2024-07-11 22:07:07 -03:00 committed by GitHub
commit 86da42dc91
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 49 additions and 0 deletions

View file

@ -0,0 +1,47 @@
{
lib,
fetchFromGitHub,
buildPythonPackage,
setuptools,
pip,
pythonAtLeast,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "pip-chill";
version = "1.0.3";
pyproject = true;
src = fetchFromGitHub {
owner = "rbanffy";
repo = "pip-chill";
rev = "refs/tags/v${version}";
hash = "sha256-oWq3UWBL5nsCBUkaElashZKvm7pN3StJNubgU++8YFs=";
};
build-system = [ setuptools ];
dependencies = lib.optionals (pythonAtLeast "3.12") [ setuptools ];
nativeCheckInputs = [
pip
pytestCheckHook
];
preCheck = ''
substituteInPlace tests/test_pip_chill.py \
--replace-fail "pip_chill/cli.py" "${placeholder "out"}/bin/pip-chill"
'';
pythonImportsCheck = [ "pip_chill" ];
meta = {
description = "A more relaxed `pip freeze`";
homepage = "https://github.com/rbanffy/pip-chill";
changelog = "https://github.com/rbanffy/pip-chill/releases/tag/v${version}";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ tochiaha ];
mainProgram = "pip-chill";
};
}

View file

@ -10023,6 +10023,8 @@ self: super: with self; {
pip-api = callPackage ../development/python-modules/pip-api { };
pip-chill = callPackage ../development/python-modules/pip-chill { };
pip-tools = callPackage ../development/python-modules/pip-tools { };
pip-requirements-parser = callPackage ../development/python-modules/pip-requirements-parser { };