Builds but - Could not find a version that satisfies the requirement - PYTHON

I’m trying to package lib50 with has dependencies on python3.6 modules. Luckily, I found a nixpkgs rev where python3.6 was found (including all the dependencies I seek) but it screams.

       > /private/tmp/nix-build-python3.6-lib50-3.0.11.drv-0/dist /private/tmp/nix-build-python3.6-lib50-3.0.11.drv-0
       > Processing ./lib50-3.0.11-py3-none-any.whl
       > ERROR: Could not find a version that satisfies the requirement termcolor<2,>=1.1 (from lib50)
       > ERROR: No matching distribution found for termcolor<2,>=1.1

Here’s my flake.nix

{
  description = "lib50 derivation";

  inputs = {
    nixpkgs.url = "nixpkgs/fdb42a72ec4298fb204b885105c6823b33897f09";
  };

  outputs = { self, nixpkgs }: let
    system = "aarch64-darwin";
    pkgs = nixpkgs.legacyPackages.${system};
    py = pkgs.python36Packages;
    in {
        packages.${system}.default = py.buildPythonPackage rec {
            pname = "lib50";
            version = "3.0.11";
            format = "wheel";
            src = py.fetchPypi {
                inherit pname version format;
                sha256 = "sha256-r00rORtTtsYpyCbirtDnkaW6MSDe4FTqPeUgBJh9MQ4=";
                python = "py3";
            };
            dependencies = with py; [ attrs packaging pexpect pyyaml requests termcolor jellyfish cryptography ];

        };
    };
}

And checked the nix store if the dependencies were actually there

cd nix/store
ls | grep -i "python3.6-termcolor"
  18mk5znprfbyay917r7ld24md9v9yp3i-python3.6-termcolor-1.1.0
  56jdvbfs4n0rbk9x71l15p9x34mb8r0p-python3.6-termcolor-1.1.0.drv 
cd 18mk5znprfbyay917r7ld24md9v9yp3i-python3.6-termcolor-1.1.0/lib/python3.6/site-packages
ls
  __pycache__	
  termcolor-1.1.0.dist-info
  termcolor.py

And it is there!

I only find this relevant but I can’t wrap my head around it and it looks pretty niche. Can someone help me?

Cheers!

solved by changing dependencies into propagatedBuildInputs

you can mark your own reply as the answer and in this case i think you should.

thanks for reminding :laughing: