Skip to content

Commit

Permalink
Merge pull request #334761 from mindstorms6/python3packages-pid-remov…
Browse files Browse the repository at this point in the history
…e-nose

python3Packages.pid: remove nose dependency
  • Loading branch information
pbsds authored Aug 18, 2024
2 parents c5973dd + b7009eb commit bc9910d
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions pkgs/development/python-modules/pid/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,35 @@
{
lib,
buildPythonPackage,
fetchpatch2,
fetchPypi,
nose,
pytestCheckHook,
setuptools,
}:

buildPythonPackage rec {
pname = "pid";
version = "3.0.4";
format = "setuptools";
pyproject = true;

src = fetchPypi {
inherit pname version;
sha256 = "0e33670e83f6a33ebb0822e43a609c3247178d4a375ff50a4689e266d853eb66";
};

buildInputs = [ nose ];
patches = [
# apply c9d1550ba2ee73231f8e984d75d808c8cc103748 to remove nose dependency. change is in repo, but hasn't been released on pypi.
(fetchpatch2 {
url = "https://github.com/trbs/pid/commit/c9d1550ba2ee73231f8e984d75d808c8cc103748.patch";
hash = "sha256-2F31LlrJku1xzmI7P+QLyUZ8CzVHx25APp88qwWkZxw=";
})
];

# No tests included
doCheck = false;
build-system = [ setuptools ];

nativeCheckInputs = [ pytestCheckHook ];

doCheck = true;

meta = with lib; {
description = "Pidfile featuring stale detection and file-locking";
Expand Down

0 comments on commit bc9910d

Please sign in to comment.