mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-06 20:48:32 +03:00
Merge pull request #324744 from Tochiaha/pycpe
python312Packages.cpe: init at 1.2.1
This commit is contained in:
commit
75d3eee9c7
43
pkgs/development/python-modules/cpe/default.nix
Normal file
43
pkgs/development/python-modules/cpe/default.nix
Normal file
@ -0,0 +1,43 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cpe";
|
||||
version = "1.2.1";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "nilp0inter";
|
||||
repo = "cpe";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-1hTOMbsL1089/yPZbAIs5OgjtEzCBlFv2hGi+u4hV/k=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "cpe" ];
|
||||
|
||||
disabledTests = [
|
||||
# Tests are outdated
|
||||
"testfile_cpelang2"
|
||||
"test_incompatible_versions"
|
||||
"test_equals"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Common platform enumeration for python";
|
||||
homepage = "https://github.com/nilp0inter/cpe";
|
||||
license = lib.licenses.gpl3Only;
|
||||
maintainers = with lib.maintainers; [ tochiaha ];
|
||||
};
|
||||
}
|
@ -2539,6 +2539,8 @@ self: super: with self; {
|
||||
|
||||
coveralls = callPackage ../development/python-modules/coveralls { };
|
||||
|
||||
cpe = callPackage ../development/python-modules/cpe { };
|
||||
|
||||
cppe = callPackage ../development/python-modules/cppe {
|
||||
inherit (pkgs) cppe;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user