Skip to content

Commit

Permalink
fixup! python3Packages.timeslot: init at 0.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
huantianad committed Apr 25, 2023
1 parent f40653a commit d2ddf94
Showing 1 changed file with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions pkgs/development/python-modules/timeslot/default.nix
Original file line number Diff line number Diff line change
@@ -1,24 +1,37 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, pythonOlder
, poetry-core
, pytest
, pytest-cov
}:

buildPythonPackage rec {
pname = "timeslot";
version = "0.1.2";

src = fetchPypi {
inherit pname version;
sha256 = "oqyZhlfj87nKkodXtJBq3SwFOQxfwU7XkruQKNCFR7E=";
# PyPI release doesn't contian test, so fetch from GitHub instead.
src = fetchFromGitHub {
owner = "ErikBjare";
repo = pname;
rev = "af35445e96cbb2f3fb671a75aac6aa93e4e7e7a6";
sha256 = "sha256-GEhg2iMsYMfalT7L9TCd1KHU6oa/wTl5m3mRC0zOH9Q=";
};

format = "pyproject";

disabled = pythonOlder "3.6";

# Tests not included on pypi, disable it for now.
doCheck = false;
nativeCheckInputs = [ pytest ];
nativeBuildInputs = [
poetry-core
];

nativeCheckInputs = [
pytest
pytest-cov
];

checkPhase = ''
runHook preCheck
Expand Down

0 comments on commit d2ddf94

Please sign in to comment.