11 buildPythonPackage rec {
12 pname = "pyaftership";
14 format = "setuptools";
16 disabled = pythonOlder "3.7";
18 src = fetchFromGitHub {
21 rev = "refs/tags/${version}";
22 hash = "sha256-njlDScmxIYWxB4EL9lOSGCXqZDzP999gI9EkpcZyFlE=";
25 propagatedBuildInputs = [
36 # Upstream is releasing with the help of a CI to PyPI, GitHub releases
37 # are not in their focus
38 substituteInPlace setup.py \
39 --replace 'version="main",' 'version="${version}",'
42 pythonImportsCheck = [
47 description = "Python wrapper package for the AfterShip API";
48 homepage = "https://github.com/ludeeus/pyaftership";
49 changelog = "https://github.com/ludeeus/pyaftership/releases/tag/${version}";
50 license = licenses.mit;
51 maintainers = with maintainers; [ jamiemagee ];