Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python3Packages.preprocess-cancellation: Fetch from PyPi #171190

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,26 +1,20 @@
{ lib, fetchFromGitHub, buildPythonPackage, pythonOlder, poetry-core
, pytestCheckHook, pytest-cov
{ lib, fetchPypi, buildPythonPackage, pythonOlder
, shapely }:

buildPythonPackage rec {
pname = "preprocess-cancellation";
version = "0.2.0";
disabled = pythonOlder "3.6"; # >= 3.6
format = "pyproject";

# No tests in PyPI
src = fetchFromGitHub {
owner = "kageurufu";
repo = "cancelobject-preprocessor";
rev = version;
hash = "sha256-mn3/etXA5dkL+IsyxwD4/XjU/t4/roYFVyqQxlLOoOI=";
src = fetchPypi {
inherit version;
pname = "preprocess_cancellation";
hash = "sha256-62hJTjXAof6DcW8qFOErPhze35RYdSvhys4A+UTZB2A=";
};

nativeBuildInputs = [ poetry-core ];

propagatedBuildInputs = [ shapely ];

checkInputs = [ pytestCheckHook pytest-cov ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to run tests, not cov, so this is a deterioration.

pythonImportsCheck = [ "preprocess_cancellation" ];

meta = with lib; {
description = "Klipper GCode Preprocessor for Object Cancellation";
Expand Down