mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
python312Packages.pygmars: refactor
This commit is contained in:
parent
1cc0966dbd
commit
ec4876b18e
1 changed files with 5 additions and 10 deletions
|
@ -5,31 +5,26 @@
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
setuptools-scm,
|
setuptools-scm,
|
||||||
pythonOlder,
|
pythonOlder,
|
||||||
|
setuptools,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pygmars";
|
pname = "pygmars";
|
||||||
version = "0.8.1";
|
version = "0.8.1";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "nexB";
|
owner = "nexB";
|
||||||
repo = pname;
|
repo = "pygmars";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-RwAZ1ZLh0zgGshSv7LleBHMotKapDFtD69ptqQnr0EA=";
|
hash = "sha256-RwAZ1ZLh0zgGshSv7LleBHMotKapDFtD69ptqQnr0EA=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# https://github.com/nexB/pygmars/pull/9
|
|
||||||
substituteInPlace setup.cfg \
|
|
||||||
--replace ">=3.6.*" ">=3.6"
|
|
||||||
'';
|
|
||||||
|
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ setuptools-scm ];
|
build-system = [ setuptools-scm ];
|
||||||
|
|
||||||
nativeCheckInputs = [ pytestCheckHook ];
|
nativeCheckInputs = [ pytestCheckHook ];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue