mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50: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,
|
||||
setuptools-scm,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pygmars";
|
||||
version = "0.8.1";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nexB";
|
||||
repo = pname;
|
||||
repo = "pygmars";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-RwAZ1ZLh0zgGshSv7LleBHMotKapDFtD69ptqQnr0EA=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# https://github.com/nexB/pygmars/pull/9
|
||||
substituteInPlace setup.cfg \
|
||||
--replace ">=3.6.*" ">=3.6"
|
||||
'';
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
nativeBuildInputs = [ setuptools-scm ];
|
||||
build-system = [ setuptools-scm ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue